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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x468600]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x458fb8]
mov dword [ebp - 0x220], eax
mov ecx, dword [0x458fbc]
mov dword [ebp - 0x21c], ecx
mov dx, word [0x458fc0]
mov word [ebp - 0x218], dx
push 0x1fe
push 0
lea eax, [ebp - 0x216]
push eax
call fcn.00429d20
add esp, 0xc
push 0x100
lea ecx, [ebp - 0x218]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x4415ad
xor eax, eax
jmp 0x441877
push 0
push 0
push 3
push 0
push 3
push SysReAllocStringLen
lea edx, [ebp - 0x220]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x234], 0xffffffff
jne 0x4415df
xor eax, eax
jmp 0x441877
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.0040b46c
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 0x44165b
jmp 0x441837
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 0x4416c0
jmp 0x441837
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 0x441712
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 0x4417b3
mov edx, dword [ebp - 0x248]
imul edx, edx, 0x28
mov eax, dword [ebp - 0x240]
movzx ecx, byte [eax + edx + 5]
test ecx, ecx
jne 0x441782
push 5
push str..info
mov edx, dword [ebp - 0x248]
imul edx, edx, 0x28
add edx, dword [ebp - 0x240]
push edx
call fcn.0043a796
add esp, 0xc
test eax, eax
jne 0x441782
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 0x441703
cmp dword [ebp - 0x22c], 0
jne 0x4417c0
jmp 0x441837
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.00429d20
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.004412a0
add esp, 0xc
mov byte [ebp - 0x14], 0xb8
mov byte [ebp - 0x13], 0x36
push 0x10
lea eax, [ebp - 0x14]
push eax
push 0x47c1f0
call fcn.0042a793
add esp, 0xc
test eax, eax
jne 0x441837
mov dword [ebp - 0x238], 1
cmp dword [ebp - 0x224], 0
je 0x44185b
mov ecx, dword [ebp - 0x224]
mov dword [ebp - 0x250], ecx
mov edx, dword [ebp - 0x250]
push edx
call fcn.0040b49b
add esp, 4
cmp dword [ebp - 0x234], 0xffffffff
je 0x441871
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.00427f57
mov esp, ebp
pop ebp
ret