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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41c710
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor ebx, ebx
mov ecx, 7
xor eax, eax
lea edi, [ebp - 0x74]
mov dword [ebp - 0x78], ebx
cmp esi, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x14], ebx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
je 0x419e94
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
je 0x419e94
cmp dword [ebp + 0x14], ebx
jne 0x419baf
cmp dword [ebp + 0x18], ebx
je 0x419e94
cmp dword [ebp + 0x1c], ebx
je 0x419e94
push ebx
push 0x80
push 3
push ebx
push 1
push connect
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x1c], eax
jne 0x419c0a
push 0x18
call sub.MFC42u.DLL_operatornew
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x419bf7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.00417bf0
jmp 0x419bf9
xor eax, eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push 0x423830
push eax
call sub.MSVCRT.dll__CxxThrowException
lea ecx, [ebp - 0x50]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x419c4c
push 0x18
call sub.MFC42u.DLL_operatornew
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x419c39
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.00417bf0
jmp 0x419c3b
xor eax, eax
lea edx, [ebp - 0x2c]
push 0x423830
push edx
mov dword [ebp - 0x2c], eax
call sub.MSVCRT.dll__CxxThrowException
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x4c]
cmp ebx, eax
jb 0x419c8e
ja 0x419c62
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp - 0x50]
cmp edi, eax
jb 0x419c91
push 0x18
call sub.MFC42u.DLL_operatornew
add esp, 4
test eax, eax
je 0x419c7b
push 0x26
mov ecx, eax
call fcn.00417bf0
jmp 0x419c7d
xor eax, eax
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push 0x423830
push eax
call sub.MSVCRT.dll__CxxThrowException
mov edi, dword [ebp + 0xc]
push 0x100000
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
mov dword [ebp - 0x20], esi
jne 0x419ce4
push 0x18
call sub.MFC42u.DLL_operatornew
add esp, 4
test eax, eax
je 0x419cd1
push 0x428094
push 0x56f
push 8
mov ecx, eax
call fcn.00417d40
jmp 0x419cd3
xor eax, eax
lea ecx, [ebp - 0x34]
push 0x423830
push ecx
mov dword [ebp - 0x34], eax
call sub.MSVCRT.dll__CxxThrowException
mov edx, dword [ebp - 0x1c]
push 0
push 0
push ebx
push edi
push edx
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x4c], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x419d31
push 0x18
call sub.MFC42u.DLL_operatornew
mov esi, eax
add esp, 4
test esi, esi
je 0x419d1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.00417bf0
jmp 0x419d20
xor eax, eax
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
push 0x423830
push eax
call sub.MSVCRT.dll__CxxThrowException
mov edx, dword [ebp + 0x1c]
xor ecx, ecx
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov ebx, dword [ebp + 0x14]
mov edi, dword [ebp - 0x58]
mov eax, ebx
sub eax, edi
cmp eax, 0x100000
mov dword [ebp - 0x14], eax
jbe 0x419d5d
mov eax, 0x100000
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x1c]
lea ecx, [ebp - 0x14]
push 0
push ecx
push eax
push esi
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x419da6
push 0x18
call sub.MFC42u.DLL_operatornew
mov esi, eax
add esp, 4
test esi, esi
je 0x419d93
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.00417bf0
jmp 0x419d95
xor eax, eax
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push 0x423830
push eax
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x419e26
mov ecx, dword [ebp - 0x54]
add edi, eax
adc ecx, 0
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x54], ecx
mov ecx, dword [ebp - 0x18]
sub ecx, 0
je 0x419dfc
dec ecx
je 0x419de8
dec ecx
jne 0x419e0e
mov ecx, dword [ebp + 0x1c]
lea edx, [ebp - 0x78]
push ecx
push 0x20
push edx
call fcn.0041b700
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x78]
push eax
push ecx
push esi
call fcn.0041b700
jmp 0x419e0e
lea edx, [ebp - 0x68]
push edx
push eax
push esi
call fcn.0041b700
mov dword [ebp - 0x18], 2
jmp 0x419e0e
lea ecx, [ebp - 0x78]
push ecx
push eax
push esi
call fcn.0041b700
mov dword [ebp - 0x18], 1
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp + 0x18]
cmp edx, eax
jb 0x419d41
ja 0x419e26
cmp edi, ebx
jb 0x419d41
mov eax, dword [ebp - 0x18]
sub eax, 0
je 0x419e68
dec eax
je 0x419e4c
dec eax
jne 0x419ee4
mov eax, dword [ebp + 0x1c]
lea ecx, [ebp - 0x78]
push eax
push 0x20
push ecx
call fcn.0041b700
jmp 0x419ee4
mov eax, dword [ebp + 0x1c]
mov edx, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x74]
mov dword [eax], edx
mov edx, dword [ebp - 0x70]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x6c]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
jmp 0x419ee4
push 0x18
call sub.MFC42u.DLL_operatornew
add esp, 4
test eax, eax
je 0x419e81
push 0x57
mov ecx, eax
call fcn.00417bf0
jmp 0x419e83
xor eax, eax
lea edx, [ebp - 0x40]
push 0x423830
push edx
mov dword [ebp - 0x40], eax
call sub.MSVCRT.dll__CxxThrowException
push 0x18
call sub.MFC42u.DLL_operatornew
add esp, 4
cmp eax, ebx
je 0x419ead
push 0x57
mov ecx, eax
call fcn.00417bf0
jmp 0x419eaf
xor eax, eax
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x44]
push 0x423830
push eax
call sub.MSVCRT.dll__CxxThrowException
mov esi, dword [ebp - 0x48]
push 2
mov ecx, esi
call fcn.00418150
test esi, esi
mov dword [ebp - 0x24], eax
je 0x419edb
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
mov eax, 0x419ee1
ret
test esi, esi
je 0x419ef8
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x1c]
cmp eax, 0xffffffff
je 0x419f07
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x24]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x18