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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x48794c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4742fc]
mov dword [ebp - 0x220], eax
mov ecx, dword [0x474300]
mov dword [ebp - 0x21c], ecx
mov dx, word [0x474304]
mov word [ebp - 0x218], dx
push 0x1fe
push 0
lea eax, [ebp - 0x216]
push eax
call fcn.00440cf0
add esp, 0xc
push 0x100
lea ecx, [ebp - 0x218]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x45ad3d
xor eax, eax
jmp 0x45b007
push 0
push 0
push 3
push 0
push 3
push SysReAllocString
lea edx, [ebp - 0x220]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x234], 0xffffffff
jne 0x45ad6f
xor eax, eax
jmp 0x45b007
push 0
mov eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x238], 0
mov ecx, dword [ebp - 0x228]
push ecx
call fcn.0040e234
add esp, 4
mov dword [ebp - 0x24c], eax
mov edx, dword [ebp - 0x24c]
mov dword [ebp - 0x224], edx
push 0
lea eax, [ebp - 0x228]
push eax
mov ecx, dword [ebp - 0x228]
push ecx
mov edx, dword [ebp - 0x224]
push edx
mov eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x45adeb
jmp 0x45afc7
mov ecx, dword [ebp - 0x224]
mov dword [ebp - 0x23c], ecx
mov edx, dword [ebp - 0x23c]
mov eax, dword [edx + 0x3c]
mov ecx, dword [ebp - 0x224]
lea edx, [ecx + eax + 4]
mov dword [ebp - 0x244], edx
mov eax, dword [ebp - 0x244]
add eax, 0x14
mov dword [ebp - 0x230], eax
mov ecx, dword [ebp - 0x244]
movzx edx, word [ecx + 0x10]
add edx, dword [ebp - 0x230]
mov dword [ebp - 0x240], edx
mov eax, dword [ebp - 0x23c]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
je 0x45ae50
jmp 0x45afc7
mov edx, dword [ebp - 0x230]
mov dword [edx + 0x40], 0
mov eax, dword [ebp - 0x230]
mov dword [eax + 0x80], 0
mov ecx, dword [ebp - 0x230]
mov dword [ecx + 0x84], 0
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x248], 0
jmp 0x45aea2
mov edx, dword [ebp - 0x248]
add edx, 1
mov dword [ebp - 0x248], edx
mov eax, dword [ebp - 0x244]
movzx ecx, word [eax + 2]
cmp dword [ebp - 0x248], ecx
jge 0x45af43
mov edx, dword [ebp - 0x248]
imul edx, edx, 0x28
mov eax, dword [ebp - 0x240]
movzx ecx, byte [eax + edx + 5]
test ecx, ecx
jne 0x45af12
push 5
push str..info
mov edx, dword [ebp - 0x248]
imul edx, edx, 0x28
add edx, dword [ebp - 0x240]
push edx
call fcn.00454f56
add esp, 0xc
test eax, eax
jne 0x45af12
mov eax, dword [ebp - 0x248]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x240]
mov edx, dword [ebp - 0x224]
add edx, dword [ecx + eax + 0x14]
mov dword [ebp - 0x22c], edx
mov eax, dword [ebp - 0x248]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x248]
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0x240]
mov eax, dword [edx + eax + 0x14]
mov edx, dword [ebp - 0x240]
add eax, dword [edx + ecx + 0x10]
mov dword [ebp - 0x228], eax
jmp 0x45ae93
cmp dword [ebp - 0x22c], 0
jne 0x45af50
jmp 0x45afc7
mov eax, dword [ebp - 0x22c]
add eax, 0x1f0
mov dword [ebp - 0x18], eax
push 0x10
push 0
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00440cf0
add esp, 0xc
mov byte [ebp - 0x14], 0
xor edx, edx
mov dword [ebp - 0x13], edx
mov dword [ebp - 0xf], edx
mov dword [ebp - 0xb], edx
mov word [ebp - 7], dx
mov byte [ebp - 5], dl
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x228]
push ecx
mov edx, dword [ebp - 0x224]
push edx
call fcn.0045aa30
add esp, 0xc
mov byte [ebp - 0x14], 0xb8
mov byte [ebp - 0x13], 0x36
push 0x10
lea eax, [ebp - 0x14]
push eax
push 0x49c1f0
call fcn.00440f93
add esp, 0xc
test eax, eax
jne 0x45afc7
mov dword [ebp - 0x238], 1
cmp dword [ebp - 0x224], 0
je 0x45afeb
mov ecx, dword [ebp - 0x224]
mov dword [ebp - 0x250], ecx
mov edx, dword [ebp - 0x250]
push edx
call fcn.0040e26e
add esp, 4
cmp dword [ebp - 0x234], 0xffffffff
je 0x45b001
mov eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x238]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043ea11
mov esp, ebp
pop ebp
ret