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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
mov dword [ebp - 0x98], ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 1
je 0x425c66
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x425c61
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov edx, dword [ebp - 8]
movzx eax, word [edx + 0x12]
mov dword [ebp - 0x9c], eax
cmp dword [ebp - 0x9c], 0x18
je 0x425a01
cmp dword [ebp - 0x9c], 0x20
je 0x425a6e
jmp 0x425acc
mov dword [ebp - 0x30], 0x21808
push 0x10
call fcn.00404b10
add esp, 4
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0
je 0x425a3e
push 0x21808
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 8]
push ecx
mov ecx, dword [ebp - 0x78]
call fcn.004257a0
mov dword [ebp - 0xa0], eax
jmp 0x425a48
mov dword [ebp - 0xa0], 0
mov edx, dword [ebp - 0xa0]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
imul eax, eax, 0x18
add eax, 0x1f
cdq
and edx, 0x1f
add eax, edx
sar eax, 5
shl eax, 2
mov dword [ebp - 0x2c], eax
jmp 0x425ad3
mov dword [ebp - 0x30], 0x26200a
push 0x10
call fcn.00404b10
add esp, 4
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x7c], 0
je 0x425aab
push 0x26200a
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 8]
push ecx
mov ecx, dword [ebp - 0x7c]
call fcn.004257a0
mov dword [ebp - 0xa4], eax
jmp 0x425ab5
mov dword [ebp - 0xa4], 0
mov edx, dword [ebp - 0xa4]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 8]
shl ecx, 2
mov dword [ebp - 0x2c], ecx
jmp 0x425ad3
xor eax, eax
jmp 0x425f51
lea edx, [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x30]
push eax
push 2
push 0
mov ecx, dword [ebp - 0x28]
call fcn.00415080
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 0x28]
call fcn.00405630
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 0x34]
sub edx, 1
imul edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
add edx, dword [eax + 0x2c]
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x3c], 0
jmp 0x425b1d
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x3c]
cmp edx, dword [ebp - 0x34]
jge 0x425b4d
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call sub.MSVCR90.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x38]
sub eax, dword [ebp - 0x2c]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], ecx
jmp 0x425b14
lea edx, [ebp - 0x24]
push edx
mov ecx, dword [ebp - 0x28]
call fcn.004150c0
cmp dword [ebp - 0x28], 0
je 0x425c61
mov ecx, dword [ebp - 0x28]
call fcn.00405600
test eax, eax
jbe 0x425c61
mov ecx, dword [ebp - 0x28]
call fcn.00405630
test eax, eax
jbe 0x425c61
mov ecx, dword [ebp - 0x28]
call fcn.00405600
mov ecx, dword [ebp - 0x98]
cmp eax, dword [ecx + 0x184]
jne 0x425baf
mov ecx, dword [ebp - 0x28]
call fcn.00405630
mov edx, dword [ebp - 0x98]
cmp eax, dword [edx + 0x180]
je 0x425be2
mov ecx, dword [ebp - 0x28]
call fcn.00405630
mov ecx, dword [ebp - 0x98]
mov dword [ecx + 0x180], eax
mov ecx, dword [ebp - 0x28]
call fcn.00405600
mov edx, dword [ebp - 0x98]
mov dword [edx + 0x184], eax
mov ecx, dword [ebp - 0x98]
call fcn.00426020
mov eax, dword [ebp - 0x98]
cmp dword [eax + 0x17c], 0
je 0x425c42
mov ecx, dword [ebp - 0x98]
mov edx, dword [ecx + 0x17c]
mov dword [ebp - 0x84], edx
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x80], 0
je 0x425c28
push 1
mov ecx, dword [ebp - 0x80]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x80]
mov eax, dword [edx]
call eax
mov dword [ebp - 0xa8], eax
jmp 0x425c32
mov dword [ebp - 0xa8], 0
mov ecx, dword [ebp - 0x98]
mov dword [ecx + 0x17c], 0
mov edx, dword [ebp - 0x98]
mov eax, dword [ebp - 0x28]
mov dword [edx + 0x17c], eax
push 1
mov ecx, dword [ebp - 0x98]
add ecx, 4
call fcn.004045d0
jmp 0x425f4f
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x68], ecx
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
mov edx, dword [ebp - 0x68]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0xffffffff
jne 0x425c98
xor eax, eax
jmp 0x425f51
mov dword [ebp - 0x58], 0
lea eax, [ebp - 0x50]
push eax
mov ecx, dword [ebp - 0x64]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x48], edx
cmp dword [ebp - 0x48], 0
ja 0x425cc0
xor eax, eax
jmp 0x425f51
mov dword [ebp - 0x6c], 0
mov eax, dword [ebp - 0x48]
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
jne 0x425ce3
xor eax, eax
jmp 0x425f51
mov ecx, dword [ebp - 0x6c]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0
jne 0x425d07
mov edx, dword [ebp - 0x6c]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
jmp 0x425f51
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x44], ecx
cmp dword [ebp - 0x5c], 0
jbe 0x425d7e
cmp dword [ebp - 0x5c], 0x400
jae 0x425d48
push 0
lea edx, [ebp - 0x58]
push edx
mov eax, dword [ebp - 0x5c]
push eax
mov ecx, dword [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x64]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x5c]
sub eax, dword [ebp - 0x5c]
mov dword [ebp - 0x5c], eax
jmp 0x425d7c
push 0
lea ecx, [ebp - 0x58]
push ecx
push 0x400
mov edx, dword [ebp - 0x44]
push edx
mov eax, dword [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x44]
add ecx, 0x400
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x5c]
sub edx, 0x400
mov dword [ebp - 0x5c], edx
jmp 0x425d13
mov eax, dword [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x6c]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0
lea ecx, [ebp - 0x40]
call fcn.00413050
lea ecx, [ebp - 0x40]
call fcn.0040f570
push eax
push 1
mov edx, dword [ebp - 0x6c]
push edx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
push 0
lea ecx, [ebp - 0x40]
call fcn.0040f480
movzx eax, al
test eax, eax
je 0x425df3
mov ecx, dword [ebp - 0x6c]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [ebp - 0x6c]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [ebp - 0x88], 0
lea ecx, [ebp - 0x40]
call fcn.00413400
mov eax, dword [ebp - 0x88]
jmp 0x425f51
push 0x10
call fcn.00404b10
add esp, 4
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0
je 0x425e2a
push 0
lea ecx, [ebp - 0x40]
call fcn.0040f230
push eax
mov ecx, dword [ebp - 0x8c]
call fcn.00405660
mov dword [ebp - 0xac], eax
jmp 0x425e34
mov dword [ebp - 0xac], 0
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x54]
call fcn.00405600
test eax, eax
jbe 0x425f47
mov ecx, dword [ebp - 0x54]
call fcn.00405630
test eax, eax
jbe 0x425f47
mov ecx, dword [ebp - 0x54]
call fcn.00405600
mov ecx, dword [ebp - 0x98]
cmp eax, dword [ecx + 0x184]
jne 0x425e89
mov ecx, dword [ebp - 0x54]
call fcn.00405630
mov edx, dword [ebp - 0x98]
cmp eax, dword [edx + 0x180]
je 0x425ebc
mov ecx, dword [ebp - 0x54]
call fcn.00405630
mov ecx, dword [ebp - 0x98]
mov dword [ecx + 0x180], eax
mov ecx, dword [ebp - 0x54]
call fcn.00405600
mov edx, dword [ebp - 0x98]
mov dword [edx + 0x184], eax
mov ecx, dword [ebp - 0x98]
call fcn.00426020
mov eax, dword [ebp - 0x98]
cmp dword [eax + 0x17c], 0
je 0x425f28
mov ecx, dword [ebp - 0x98]
mov edx, dword [ecx + 0x17c]
mov dword [ebp - 0x94], edx
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0
je 0x425f0e
push 1
mov ecx, dword [ebp - 0x90]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x90]
mov eax, dword [edx]
call eax
mov dword [ebp - 0xb0], eax
jmp 0x425f18
mov dword [ebp - 0xb0], 0
mov ecx, dword [ebp - 0x98]
mov dword [ecx + 0x17c], 0
mov edx, dword [ebp - 0x98]
mov eax, dword [ebp - 0x54]
mov dword [edx + 0x17c], eax
push 1
mov ecx, dword [ebp - 0x98]
add ecx, 4
call fcn.004045d0
lea ecx, [ebp - 0x40]
call fcn.00413400
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10