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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x458f1b
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x897474]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0x208
mov dword [ebp - 0x26c], eax
lea eax, [ebp - 0x238]
push 0
push eax
call fcn.0044a720
add esp, 0xc
lea eax, [ebp - 0x238]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
lea eax, [ebp - 0x238]
mov dword [ebp - 0x264], 0
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x260], xmm0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
lea ecx, [ebp - 0x254]
mov dword [ebp - 0x268], eax
push ecx
push eax
mov dword [ebp - 0x254], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x43744b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x43744b
mov edi, dword [ebp - 0x260]
jmp 0x43745e
mov eax, dword [ebp - 0x254]
xor edi, edi
add edi, esi
adc eax, 0
mov dword [ebp - 0x25c], eax
lea esi, [edi + 0x80]
mov dword [ebp - 0x25c], 0
push esi
push 0x45a4d8
call dword [0x45a4d8]
mov dword [ebp - 0x260], eax
test eax, eax
je 0x4375f3
mov dword [ebp - 0x25c], esi
push 0
lea esi, [eax + 0x80]
mov dword [ebp - 4], 0
lea eax, [ebp - 0x264]
push eax
push edi
push esi
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x260]
call fcn.00409d30
push edi
push esi
mov esi, dword [ebp - 0x260]
push esi
call fcn.00409d90
lea eax, [ebp - 0x30]
xorps xmm0, xmm0
push eax
push esi
movups xmmword [ebp - 0x30], xmm0
movups xmmword [ebp - 0x20], xmm0
call fcn.00409c30
lea eax, [ebp - 0x255]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x278]
call fcn.00434b80
lea eax, [edi + 0x80]
mov byte [ebp - 4], 1
push eax
push 0
push esi
call fcn.0044a720
add esp, 0xc
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp - 0x250]
push eax
call fcn.004388b0
cmp dword [eax + 0x14], 0x10
jb 0x43752b
mov eax, dword [eax]
movups xmm0, xmmword [eax]
mov ecx, dword [ebp - 0x26c]
mov edx, dword [ebp - 0x23c]
movups xmmword [ecx], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [ecx + 0x10], xmm0
movups xmm0, xmmword [eax + 0x20]
movups xmmword [ecx + 0x20], xmm0
movups xmm0, xmmword [eax + 0x30]
movups xmmword [ecx + 0x30], xmm0
cmp edx, 0x10
jb 0x437589
mov ecx, dword [ebp - 0x250]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x43757f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43760e
push edx
push ecx
call fcn.004491f5
add esp, 8
mov ecx, dword [ebp - 0x278]
mov byte [ebp - 4], 0
test ecx, ecx
je 0x4375c3
mov edx, dword [ebp - 0x270]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x4375b9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x437613
push edx
push ecx
call fcn.004491f5
add esp, 8
push esi
push 0x45a4d8
mov dword [ebp - 4], 2
call dword [0x45a4dc]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00448fd1
mov esp, ebp
pop ebp
ret 4
push 0x4646c4
lea eax, [ebp - 0x254]
mov dword [ebp - 0x254], 1
push eax
call fcn.0044abdc
call fcn.0044d33d
call fcn.0044d33d
int3