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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43f610
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x458504]
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 ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x24], 0xf
mov dword [ebp - 0x28], 0
mov byte [ebp - 0x38], 0
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0
push ecx
push 0xffffffffffffffff
push eax
call fcn.00418380
cmp dword [ebp - 0x24], 0x10
lea eax, [ebp - 0x38]
push 0
cmovae eax, dword [ebp - 0x38]
push eax
call fcn.0041b870
add esp, 0x14
mov dword [ebp - 0x7c], eax
test eax, eax
jne 0x418700
xor esi, esi
jmp 0x418914
mov esi, dword [ebx]
xor ecx, ecx
mov dword [ebp - 0x78], ecx
mov eax, 0x2aaaaaab
mov ecx, dword [ebx + 4]
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x418902
xor edi, edi
mov dword [ebp - 0x84], edi
jmp 0x418730
cmp dword [edi + esi + 0x14], 8
lea eax, [edi + esi]
jb 0x41873c
mov eax, dword [eax]
push 0
push 0
push 3
push 0
push 7
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4188d2
push 0
lea eax, [ebp - 0x90]
mov dword [ebp - 0x90], 0
push eax
push 0
push ebx
mov dword [ebp - 0x8c], 0
call dword [sym.imp.KERNEL32.dll_GetFileTime]
xor eax, eax
xorps xmm0, xmm0
mov word [ebp - 0x20], ax
mov dword [ebp - 0x16], eax
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x90]
movq qword [ebp - 0x1e], xmm0
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
movzx eax, word [ebp - 0x14]
mov esi, dword [ebp - 0x80]
mov dword [ebp - 0x74], eax
movzx eax, word [ebp - 0x16]
mov dword [ebp - 0x70], eax
movzx eax, word [ebp - 0x18]
mov dword [ebp - 0x6c], eax
movzx eax, word [ebp - 0x1a]
mov dword [ebp - 0x68], eax
movzx eax, word [ebp - 0x1e]
mov dword [ebp - 0x64], eax
movzx eax, word [ebp - 0x20]
mov dword [ebp - 0x60], eax
mov eax, dword [esi]
add eax, edi
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
cmp dword [eax + 0x14], 8
jb 0x4187f7
mov eax, dword [eax]
push 0x5c
push eax
call dword [sym.imp.MSVCR120.dll_wcsrchr]
add esp, 8
test eax, eax
je 0x41880c
add eax, 2
jmp 0x418818
mov eax, dword [esi]
add eax, edi
cmp dword [eax + 0x14], 8
jb 0x418818
mov eax, dword [eax]
mov dword [ebp - 0x3c], 0xf
mov dword [ebp - 0x40], 0
mov byte [ebp - 0x50], 0
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 1
push ecx
push 0xffffffffffffffff
push eax
call fcn.00418380
cmp dword [ebp - 0x3c], 0x10
lea ecx, [ebp - 0x74]
push 0xffffffffffffffff
push 8
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x50]
cmovae eax, dword [ebp - 0x50]
push ecx
push eax
push dword [ebp - 0x7c]
call fcn.0041ba60
add esp, 0x34
test eax, eax
jne 0x4188b6
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
call fcn.0041ff0d
add esp, 4
mov dword [ebp - 0x88], 0
mov edi, eax
lea eax, [ebp - 0x88]
push 0
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x88]
push edi
push dword [ebp - 0x7c]
call fcn.0041c0d0
push edi
call sub.MSVCR120.dll_void___cdecl_operator_delete___void__
mov edi, dword [ebp - 0x84]
add esp, 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x3c], 0x10
mov byte [ebp - 4], 0
jb 0x4188d2
push dword [ebp - 0x50]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ebx, dword [ebp - 0x80]
mov eax, 0x2aaaaaab
inc dword [ebp - 0x78]
add edi, 0x18
mov dword [ebp - 0x84], edi
mov ecx, dword [ebx + 4]
mov esi, dword [ebx]
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0x78], eax
jb 0x418730
push 0
push dword [ebp - 0x7c]
call fcn.0041aef0
add esp, 8
mov esi, 1
cmp dword [ebp - 0x24], 0x10
jb 0x418925
push dword [ebp - 0x38]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, esi
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.0043d084
mov esp, ebp
pop ebp
ret