Function at 0x41c5c0
Capabilities:
Check for time delay via gettickcount
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a33f4
mov eax, dword fs:[0]
push eax
sub esp, 0x444
mov eax, dword [0x4c3014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x1212], 0
jne 0x41c615
push 0xb10d0
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [esi + 0x1212], eax
test eax, eax
je 0x41cc1e
lea ecx, [ebp - 0x448]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
push 0xb10d0
mov dword [ebp - 4], 0
push 0
push dword [esi + 0x1212]
call sub.VCRUNTIME140.dll_memset
push 0x400
lea eax, [ebp - 0x444]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
cmp dword [0x4c6264], 0
jne 0x41c6c9
cmp dword [0x4c6214], 0
jne 0x41c6c9
push dword [esi + 0x452]
lea eax, [ebp - 0x444]
push 0x4c5c98
push 0x4b7d70
push eax
call fcn.0041fb60
movzx eax, byte [esi + 0x577]
add esp, 0x10
push dword [esi + 0x452]
push eax
movzx eax, byte [esi + 0x575]
push eax
lea eax, [ebp - 0x448]
push 0x4b7ca4
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__9]
mov ebx, dword [ebp + 8]
add esp, 0x14
mov ecx, dword [0x4c6278]
push dword [ebp - 0x448]
push 0x12
push ebx
call dword [sym.imp.mfc140u.dll_CListCtrl::SetItemText]
jmp 0x41c78c
cmp dword [0x4c5c88], 0
je 0x41c72f
cmp dword [0x4c6270], 0
je 0x41c70d
mov ebx, dword [ebp + 8]
mov ecx, dword [0x4c6278]
push 0x4b7c54
push 0x12
push ebx
call dword [sym.imp.mfc140u.dll_CListCtrl::SetItemText]
push 0x4c5c98
lea eax, [ebp - 0x444]
push 0x4b7d3c
push eax
call fcn.0041fb60
add esp, 0xc
jmp 0x41c761
push dword [esi + 0x452]
movzx eax, byte [esi + 0x577]
push eax
movzx eax, byte [esi + 0x575]
push eax
push 0x4c5c98
push 0x4b7d54
jmp 0x41c74f
push dword [esi + 0x452]
movzx eax, byte [esi + 0x577]
push eax
movzx eax, byte [esi + 0x575]
push eax
push 0x4c5c98
push 0x4b7c5c
lea eax, [ebp - 0x444]
push eax
call fcn.0041fb60
mov ebx, dword [ebp + 8]
add esp, 0x18
push dword [esi + 0x452]
movzx eax, byte [esi + 0x577]
push eax
movzx eax, byte [esi + 0x575]
push eax
lea eax, [ebp - 0x448]
push 0x4b7c78
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__9]
add esp, 0x14
push 0x32
lea eax, [ebp - 0x44]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [esi + 0x452]
lea edx, [ebp - 0x44]
add esp, 0xc
call fcn.004276a0
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
lea eax, [ebp - 0x444]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x41c82c
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x450]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__4]
mov byte [ebp - 4], 1
push dword [eax]
movzx eax, byte [esi + 0x577]
push dword [esi + 0x452]
push eax
movzx eax, byte [esi + 0x575]
push eax
lea eax, [ebp - 0x448]
push 0x4b7ccc
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__9]
add esp, 0x18
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x450]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
push dword [ebp - 0x448]
push 0x12
push ebx
jmp 0x41cc06
lea eax, [ebp - 0x44c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
mov ebx, eax
lea eax, [ebp - 0x44c]
push eax
push ebx
push dword [esi + 0x1212]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
cmp dword [ebp - 0x44c], ebx
je 0x41c867
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41cc12
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x41cbaa
cmp dword [esi + 0x1212], 0
je 0x41cbaa
mov eax, 0xfd08e551
mul ebx
shr edx, 0xa
mov dword [esi + 0x1216], edx
cmp edx, 0x32
jge 0x41c8c6
cmp dword [0x4c6250], 0
je 0x41c8b7
cmp byte [esi + 0x5fd], 0
je 0x41c8b7
mov ecx, esi
call fcn.00414030
mov ecx, esi
call fcn.00414030
mov dword [esi + 0x416], 1
jmp 0x41cc12
push 0x2328
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
xor ebx, ebx
mov dword [ebp - 0x450], eax
mov dword [esi + 0x121a], eax
cmp dword [esi + 0x1216], eax
jle 0x41cba1
nop dword [eax]
cmp dword [esi + 0x1212], 0
je 0x41cba1
cmp byte [esi + 0x555], 0
jne 0x41cba1
cmp dword [0x4c6280], 0
je 0x41cba1
cmp byte [esi + 0x5f6], 0
je 0x41cba1
cmp byte [esi + 0x5ad], 0
je 0x41cba1
cmp dword [esi + 0x514], 0
je 0x41cba1
cmp dword [0x4c6264], 0
je 0x41c970
push dword [esi + 0x121a]
movzx eax, byte [esi + 0x577]
push dword [esi + 0x1216]
push dword [esi + 0x452]
push eax
movzx eax, byte [esi + 0x575]
push eax
push 0x4b7cf4
jmp 0x41c9a4
cmp byte [esi + 0x5d6], 0
jne 0x41cc12
push dword [esi + 0x121a]
movzx eax, byte [esi + 0x561]
push dword [esi + 0x1216]
push eax
push dword [esi + 0x452]
movzx eax, byte [esi + 0x5d3]
push eax
push 0x4b7d18
lea eax, [ebp - 0x448]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__9]
mov ecx, dword [0x4c6278]
add esp, 0x1c
push dword [ebp - 0x448]
push 0x12
push dword [ebp + 8]
call dword [sym.imp.mfc140u.dll_CListCtrl::SetItemText]
mov eax, dword [esi + 0x1212]
test eax, eax
je 0x41cb89
push 1
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x41cb89
imul edi, dword [esi + 0x121a], 0x40c
mov eax, 0xaaaaaaab
add edi, dword [esi + 0x1212]
mul dword [edi]
mov eax, 0xaaaaaaab
mov ecx, edx
mul dword [edi + 4]
shr ecx, 1
shr edx, 1
cmp ecx, 0x7b
jne 0x41ca7c
cmp byte [esi + 0x5d4], 0
je 0x41ca33
cmp dword [0x4c5c8c], 0
je 0x41ca33
cmp dword [0x4c622c], 0
jne 0x41cb46
cmp dword [0x4c6210], 0
jne 0x41cb46
cmp dword [0x4c5984], 0
je 0x41ca6b
mov eax, dword [esi + 0x4c7]
test eax, eax
je 0x41cb46
cmp eax, 1
jl 0x41cb46
cmp eax, 0x7d0
jge 0x41cb46
push edx
lea eax, [edi + 0xc]
mov ecx, esi
push eax
call fcn.0041e8b0
jmp 0x41cb46
cmp dword [0x4c6264], 0
jne 0x41cb1c
cmp ecx, 0x27c
jne 0x41caa2
push edx
lea eax, [edi + 0xc]
mov ecx, esi
push eax
call fcn.0041bbc0
jmp 0x41cb46
cmp ecx, 0x77
jne 0x41cab8
push edx
lea eax, [edi + 0xc]
mov ecx, esi
push eax
call fcn.0041bda0
jmp 0x41cb46
cmp ecx, 0x4e81
jne 0x41caf3
push edx
lea eax, [edi + 0xc]
mov ecx, esi
push eax
call fcn.0041be90
cmp dword [0x4c622c], 0
je 0x41cb46
mov eax, dword [ebp - 0x450]
inc eax
mov dword [ebp - 0x450], eax
cmp eax, 0xffff
jb 0x41cb46
xor eax, eax
mov dword [ebp - 0x450], eax
jmp 0x41cb46
cmp ecx, 0xa5
jne 0x41cb09
push edx
lea eax, [edi + 0xc]
mov ecx, esi
push eax
call fcn.0041cd30
jmp 0x41cb46
cmp ecx, 0x7c
jne 0x41cb1c
push edx
lea eax, [edi + 0xc]
mov ecx, esi
push eax
call fcn.0041cc40
jmp 0x41cb46
cmp ecx, 0x3a6
jne 0x41cb32
push edx
lea eax, [edi + 0xc]
mov ecx, esi
push eax
call fcn.0041ce20
jmp 0x41cb46
cmp ecx, 0x6040
jne 0x41cb46
push edx
lea eax, [edi + 0xc]
mov ecx, esi
push eax
call fcn.0041bcb0
test ebx, ebx
jne 0x41cb52
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
imul edx, dword [esi + 0x121a], 0x40c
mov ecx, dword [esi + 0x1212]
mov edi, dword [edx + ecx + 8]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [edi + ebx]
sub ecx, eax
je 0x41cb7a
cmp ecx, edi
jae 0x41cb7a
push ecx
jmp 0x41cb7b
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
inc dword [esi + 0x121a]
mov eax, dword [esi + 0x121a]
cmp eax, dword [esi + 0x1216]
jl 0x41c8f0
mov byte [esi + 0x5d8], 1
jmp 0x41cc12
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x450]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__4]
mov byte [ebp - 4], 2
push dword [eax]
movzx eax, byte [esi + 0x577]
push dword [esi + 0x452]
push eax
movzx eax, byte [esi + 0x575]
push eax
lea eax, [ebp - 0x448]
push 0x4b7ccc
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__9]
add esp, 0x18
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x450]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
push dword [ebp - 0x448]
push 0x12
push dword [ebp + 8]
mov ecx, dword [0x4c6278]
call dword [sym.imp.mfc140u.dll_CListCtrl::SetItemText]
lea ecx, [ebp - 0x448]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044632d
mov esp, ebp
pop ebp
ret 4