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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a322c
mov eax, dword fs:[0]
push eax
sub esp, 0x40c
mov eax, dword [0x4c2014]
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 + 0x120d], 0
jne 0x41c845
push 0xb05e0
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [esi + 0x120d], eax
test eax, eax
je 0x41cdb2
lea ecx, [ebp - 0x414]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 0
cmp dword [0x4c5138], 0
mov ebx, dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__9]
je 0x41c8b3
mov ecx, dword [0x4c5140]
push 0x4b6c7c
push 0x12
push edi
call dword [sym.imp.mfc140u.dll_CListCtrl::SetItemText]
cmp dword [esi + 0x452], 0x115
jne 0x41c8c8
push 0xb05e0
push dword [0x4c4290]
push dword [esi + 0x120d]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [0x4c4294]
add esp, 0xc
mov dword [esi + 0x1215], eax
jmp 0x41caf8
push 0xb05e0
push 0
push dword [esi + 0x120d]
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 [0x4c4b5c], 0
jne 0x41c946
cmp dword [0x4c512c], 0
jne 0x41c9b6
cmp dword [0x4c50dc], 0
jne 0x41c9b6
push dword [esi + 0x452]
lea eax, [ebp - 0x410]
push 0x4c4c88
push 0x4b6cb8
push eax
call fcn.00420240
push dword [esi + 0x452]
movzx eax, byte [esi + 0x577]
push eax
movzx eax, byte [esi + 0x575]
push eax
lea eax, [ebp - 0x414]
push 0x4b6ccc
push eax
call ebx
add esp, 0x24
jmp 0x41c99e
cmp dword [0x4c512c], 0
jne 0x41c9b6
cmp dword [0x4c50dc], 0
jne 0x41c9b6
push dword [esi + 0x452]
lea eax, [ebp - 0x410]
push 0x4c4c88
push 0x4b6ce4
push eax
call fcn.00420240
movzx eax, byte [esi + 0x577]
add esp, 0x10
push dword [esi + 0x452]
push eax
movzx eax, byte [esi + 0x575]
push eax
lea eax, [ebp - 0x414]
push 0x4b6ccc
push eax
call ebx
add esp, 0x14
push dword [ebp - 0x414]
mov ecx, dword [0x4c5140]
mov eax, dword [sym.imp.mfc140u.dll_CListCtrl::SetItemText]
push 0x12
push edi
call eax
jmp 0x41ca09
push dword [esi + 0x452]
movzx eax, byte [esi + 0x577]
push eax
movzx eax, byte [esi + 0x575]
push eax
push 0x4c4c88
lea eax, [ebp - 0x410]
push 0x4b6c84
push eax
call fcn.00420240
push dword [esi + 0x452]
movzx eax, byte [esi + 0x577]
push eax
movzx eax, byte [esi + 0x575]
push eax
lea eax, [ebp - 0x414]
push 0x4b6ca0
push eax
call ebx
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 0x41ca55
push dword [esi + 0x452]
movzx eax, byte [esi + 0x577]
push eax
movzx eax, byte [esi + 0x575]
push eax
lea eax, [ebp - 0x414]
push 0x4b6cf4
push eax
call ebx
jmp 0x41cd8b
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 + 0x120d]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
cmp dword [ebp - 0x418], ebx
je 0x41ca90
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41cda6
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x41cd63
cmp dword [esi + 0x120d], 0
je 0x41cd63
mov eax, 0xfe03f81
mul ebx
shr edx, 6
mov dword [esi + 0x1215], edx
cmp edx, 0x32
jge 0x41caef
cmp dword [0x4c5118], 0
je 0x41cae0
cmp byte [esi + 0x5fc], 0
je 0x41cae0
mov ecx, esi
call fcn.004146c0
mov ecx, esi
call fcn.004146c0
mov dword [esi + 0x416], 1
jmp 0x41cda6
mov ebx, dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__9]
mov edi, dword [ebp + 8]
push 0x2328
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esi + 0x1215], 0
mov dword [esi + 0x1219], 0
jle 0x41cd5a
nop word [eax + eax]
cmp dword [esi + 0x120d], 0
je 0x41cd5a
cmp byte [esi + 0x555], 0
jne 0x41cd5a
cmp dword [0x4c5144], 0
je 0x41cd5a
cmp byte [esi + 0x5f6], 0
je 0x41cd5a
cmp byte [esi + 0x5ad], 0
je 0x41cd5a
cmp dword [esi + 0x514], 0
je 0x41cd5a
cmp dword [0x4c512c], 0
jne 0x41cbb6
cmp dword [0x4c50dc], 0
jne 0x41cbb6
cmp byte [esi + 0x5d6], 0
jne 0x41cda6
push dword [esi + 0x1219]
movzx eax, byte [esi + 0x561]
push dword [esi + 0x1215]
push eax
push dword [esi + 0x452]
movzx eax, byte [esi + 0x5d3]
push eax
push 0x4b6d38
jmp 0x41cbdd
push dword [esi + 0x1219]
movzx eax, byte [esi + 0x577]
push dword [esi + 0x1215]
push dword [esi + 0x452]
push eax
movzx eax, byte [esi + 0x575]
push eax
push 0x4b6d14
lea eax, [ebp - 0x414]
push eax
call ebx
mov ecx, dword [0x4c5140]
add esp, 0x1c
push dword [ebp - 0x414]
push 0x12
push edi
call dword [sym.imp.mfc140u.dll_CListCtrl::SetItemText]
mov eax, dword [esi + 0x120d]
test eax, eax
je 0x41cd42
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x41cd42
imul ebx, dword [esi + 0x1219], 0x408
mov eax, 0xaaaaaaab
add ebx, dword [esi + 0x120d]
mul dword [ebx]
mov eax, 0xaaaaaaab
mov ecx, edx
mul dword [ebx + 4]
shr ecx, 1
mov edi, edx
shr edi, 1
cmp ecx, 0x7b
jne 0x41cc89
cmp byte [esi + 0x5d4], 0
je 0x41cc64
cmp dword [0x4c4b58], 0
je 0x41cc64
cmp dword [0x4c50f4], 0
jne 0x41cc79
cmp dword [0x4c50d8], 0
jne 0x41cc79
push edi
lea eax, [ebx + 8]
mov ecx, esi
push eax
call fcn.0041f000
push 0xfa0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x41cd39
cmp dword [0x4c512c], 0
jne 0x41cce7
cmp ecx, 0x77
jne 0x41cca8
push edi
lea eax, [ebx + 8]
mov ecx, esi
push eax
call fcn.0041c610
jmp 0x41cd39
cmp ecx, 0x4e81
jne 0x41ccbe
push edi
lea eax, [ebx + 8]
mov ecx, esi
push eax
call fcn.0041c700
jmp 0x41ccef
cmp ecx, 0xa5
jne 0x41ccd4
push edi
lea eax, [ebx + 8]
mov ecx, esi
push eax
call fcn.0041d480
jmp 0x41cd39
cmp ecx, 0x7c
jne 0x41cce7
push edi
lea eax, [ebx + 8]
mov ecx, esi
push eax
call fcn.0041d390
jmp 0x41cd39
cmp ecx, 0x4e81
jne 0x41cd0f
imul ecx, dword [esi + 0x1219], 0x408
mov eax, dword [esi + 0x120d]
push edi
add ecx, 8
add eax, ecx
mov ecx, esi
push eax
call fcn.0041c700
jmp 0x41cd39
cmp ecx, 0x3a6
jne 0x41cd25
push edi
lea eax, [ebx + 8]
mov ecx, esi
push eax
call fcn.0041d570
jmp 0x41cd39
cmp ecx, 0x6040
jne 0x41cd39
push edi
lea eax, [ebx + 8]
mov ecx, esi
push eax
call fcn.0041c520
mov edi, dword [ebp + 8]
mov ebx, dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__9]
inc dword [esi + 0x1219]
mov eax, dword [esi + 0x1219]
cmp eax, dword [esi + 0x1215]
jl 0x41cb20
mov byte [esi + 0x5d8], 1
jmp 0x41cda6
push dword [esi + 0x452]
movzx eax, byte [esi + 0x577]
push eax
movzx eax, byte [esi + 0x575]
push eax
lea eax, [ebp - 0x414]
push 0x4b6cf4
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__9]
mov eax, dword [ebp + 8]
add esp, 0x14
mov ecx, dword [0x4c5140]
push dword [ebp - 0x414]
push 0x12
push eax
call dword [sym.imp.mfc140u.dll_CListCtrl::SetItemText]
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.0044612d
mov esp, ebp
pop ebp
ret 4