Function at 0x41a670
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49f99c
mov eax, dword fs:[0]
push eax
sub esp, 0x40c
mov eax, dword [0x4be014]
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 + 0x120c], 0
jne 0x41a6c5
push 0xb10d0
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [esi + 0x120c], eax
test eax, eax
je 0x41ac5f
lea ecx, [ebp - 0x414]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
cmp dword [0x4c10f4], 0
mov edi, dword [sym.imp.mfc140u.dll_CListCtrl::SetItemText]
je 0x41a72f
mov ecx, dword [0x4c10fc]
push 0x4b3bfc
push 0x12
push ebx
call edi
cmp dword [esi + 0x452], 0x115
jne 0x41a744
push 0xb10d0
push dword [0x4c0290]
push dword [esi + 0x120c]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [0x4c0294]
add esp, 0xc
mov dword [esi + 0x1210], eax
jmp 0x41a921
push 0xb10d0
push 0
push dword [esi + 0x120c]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x400
lea eax, [ebp - 0x410]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [0x4c10e8], 0
jne 0x41a7ca
cmp dword [0x4c0f98], 0
jne 0x41a7ca
push dword [esi + 0x452]
lea eax, [ebp - 0x410]
push 0x4c0a20
push 0x4b3cdc
push eax
call fcn.0041da40
movzx eax, byte [esi + 0x576]
add esp, 0x10
push dword [esi + 0x452]
push eax
movzx eax, byte [esi + 0x574]
push eax
lea eax, [ebp - 0x414]
push 0x4b3c4c
push eax
mov eax, dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__9]
call eax
mov ecx, dword [0x4c10fc]
add esp, 0x14
push dword [ebp - 0x414]
push 0x12
push ebx
call edi
jmp 0x41a822
push dword [esi + 0x452]
movzx eax, byte [esi + 0x576]
push eax
movzx eax, byte [esi + 0x574]
push eax
push 0x4c0a20
lea eax, [ebp - 0x410]
push 0x4b3c04
push eax
call fcn.0041da40
push dword [esi + 0x452]
movzx eax, byte [esi + 0x576]
push eax
movzx eax, byte [esi + 0x574]
push eax
lea eax, [ebp - 0x414]
push 0x4b3c20
push eax
mov eax, dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__9]
call eax
add esp, 0x2c
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x41a87e
push dword [esi + 0x452]
movzx eax, byte [esi + 0x576]
push eax
movzx eax, byte [esi + 0x574]
push eax
lea eax, [ebp - 0x414]
push 0x4b3c74
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 dword [ebp - 0x414]
push 0x12
push ebx
jmp 0x41ac46
lea eax, [ebp - 0x418]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
mov ebx, eax
lea eax, [ebp - 0x418]
push eax
push ebx
push dword [esi + 0x120c]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
cmp dword [ebp - 0x418], ebx
je 0x41a8b9
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41ac53
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x41ac10
cmp dword [esi + 0x120c], 0
je 0x41ac10
mov eax, 0xfd08e551
mul ebx
shr edx, 0xa
mov dword [esi + 0x1210], edx
cmp edx, 0x32
jge 0x41a918
cmp dword [0x4c0fd4], 0
je 0x41a909
cmp byte [esi + 0x5f7], 0
je 0x41a909
mov ecx, esi
call fcn.004121b0
mov ecx, esi
call fcn.004121b0
mov dword [esi + 0x416], 1
jmp 0x41ac53
mov ebx, dword [ebp + 8]
mov edi, dword [sym.imp.mfc140u.dll_CListCtrl::SetItemText]
push 0x2328
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call dword [sym.imp.WS2_32.dll_htonl]
cmp dword [esi + 0x1210], 0
mov dword [esi + 0x504], eax
mov dword [esi + 0x1214], 0
jle 0x41ac07
nop word [eax + eax]
cmp dword [esi + 0x120c], 0
je 0x41ac07
cmp byte [esi + 0x554], 0
jne 0x41ac07
cmp dword [0x4c1100], 0
je 0x41ac07
cmp byte [esi + 0x5f1], 0
je 0x41ac07
cmp byte [esi + 0x5ac], 0
je 0x41ac07
cmp dword [esi + 0x514], 0
je 0x41ac07
cmp dword [0x4c10e8], 0
je 0x41a9e0
push dword [esi + 0x1214]
movzx eax, byte [esi + 0x576]
push dword [esi + 0x1210]
push dword [esi + 0x452]
push eax
movzx eax, byte [esi + 0x574]
push eax
push 0x4b3c94
jmp 0x41aa14
cmp byte [esi + 0x5d1], 0
jne 0x41ac53
push dword [esi + 0x1214]
movzx eax, byte [esi + 0x560]
push dword [esi + 0x1210]
push eax
push dword [esi + 0x452]
movzx eax, byte [esi + 0x5ce]
push eax
push 0x4b3cb8
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__9]
mov ecx, dword [0x4c10fc]
add esp, 0x1c
push dword [ebp - 0x414]
push 0x12
push ebx
call edi
mov eax, dword [esi + 0x120c]
test eax, eax
je 0x41abef
push 1
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x41abef
imul ecx, dword [esi + 0x1214], 0x40c
mov eax, 0xaaaaaaab
add ecx, dword [esi + 0x120c]
mul dword [ecx]
mov eax, 0xaaaaaaab
mov edi, edx
mul dword [ecx + 4]
shr edi, 1
mov ebx, edx
shr ebx, 1
cmp edi, 0x7b
jne 0x41aae8
cmp byte [esi + 0x5cf], 0
je 0x41aa9f
cmp dword [0x4c0a1c], 0
je 0x41aa9f
cmp dword [0x4c0fb0], 0
jne 0x41abcc
cmp dword [0x4c0f94], 0
jne 0x41abcc
cmp dword [0x4c0a18], 0
je 0x41aad7
mov eax, dword [esi + 0x4c7]
test eax, eax
je 0x41abcc
cmp eax, 1
jb 0x41abcc
cmp eax, 0x7d0
jae 0x41abcc
lea eax, [ecx + 0xc]
mov ecx, esi
push ebx
push eax
call fcn.0041c860
jmp 0x41abcc
cmp dword [0x4c10e8], 0
jne 0x41aba6
cmp dword [ecx], 0x27c
jne 0x41ab09
lea eax, [ecx + 0xc]
mov ecx, esi
push ebx
push eax
call fcn.00419d80
cmp edi, 0x77
jne 0x41ab31
imul ecx, dword [esi + 0x1214], 0x40c
mov eax, dword [esi + 0x120c]
push ebx
add ecx, 0xc
add eax, ecx
mov ecx, esi
push eax
call fcn.00419e70
jmp 0x41abcc
cmp edi, 0x4e81
jne 0x41ab59
imul ecx, dword [esi + 0x1214], 0x40c
mov eax, dword [esi + 0x120c]
push ebx
add ecx, 0xc
add eax, ecx
mov ecx, esi
push eax
call fcn.00419f60
jmp 0x41abcc
cmp edi, 0xa5
jne 0x41ab81
imul ecx, dword [esi + 0x1214], 0x40c
mov eax, dword [esi + 0x120c]
push ebx
add ecx, 0xc
add eax, ecx
mov ecx, esi
push eax
call fcn.0041ad70
jmp 0x41abcc
cmp edi, 0x7c
jne 0x41aba6
imul ecx, dword [esi + 0x1214], 0x40c
mov eax, dword [esi + 0x120c]
push ebx
add ecx, 0xc
add eax, ecx
mov ecx, esi
push eax
call fcn.0041ac80
jmp 0x41abcc
cmp edi, 0x3a6
jne 0x41abcc
imul ecx, dword [esi + 0x1214], 0x40c
mov eax, dword [esi + 0x120c]
push ebx
add ecx, 0xc
add eax, ecx
mov ecx, esi
push eax
call fcn.0041ae60
imul ecx, dword [esi + 0x1214], 0x40c
mov eax, dword [esi + 0x120c]
push dword [ecx + eax + 8]
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, dword [ebp + 8]
mov edi, dword [sym.imp.mfc140u.dll_CListCtrl::SetItemText]
inc dword [esi + 0x1214]
mov eax, dword [esi + 0x1214]
cmp eax, dword [esi + 0x1210]
jl 0x41a960
mov byte [esi + 0x5d3], 1
jmp 0x41ac53
push dword [esi + 0x452]
movzx eax, byte [esi + 0x576]
push eax
movzx eax, byte [esi + 0x574]
push eax
lea eax, [ebp - 0x414]
push 0x4b3c74
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 dword [ebp - 0x414]
push 0x12
push dword [ebp + 8]
mov ecx, dword [0x4c10fc]
mov eax, dword [sym.imp.mfc140u.dll_CListCtrl::SetItemText]
call eax
lea ecx, [ebp - 0x414]
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.004429bd
mov esp, ebp
pop ebp
ret 4