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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x46c99c]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xa0], ecx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [ebp - 4]
push ecx
push 0x40
lea edx, [ebp - 0x98]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0x40
lea ecx, [ebp - 0x98]
push ecx
mov edx, dword [ebp - 0xa0]
add edx, 4
push edx
call fcn.0043d4e0
add esp, 0xc
mov eax, dword [0x457cb0]
mov dword [ebp - 0x4c], eax
mov ecx, dword [0x457cb4]
mov dword [ebp - 0x48], ecx
mov dl, byte [0x457cb8]
mov byte [ebp - 0x44], dl
mov eax, dword [0x457cbc]
mov dword [ebp - 0x43], eax
mov ecx, dword [0x457cc0]
mov dword [ebp - 0x3f], ecx
mov dl, byte [0x457cc4]
mov byte [ebp - 0x3b], dl
mov eax, dword [0x457cc8]
mov dword [ebp - 0x3a], eax
mov ecx, dword [0x457ccc]
mov dword [ebp - 0x36], ecx
mov dl, byte [0x457cd0]
mov byte [ebp - 0x32], dl
mov eax, dword [0x457cd4]
mov dword [ebp - 0x31], eax
mov ecx, dword [0x457cd8]
mov dword [ebp - 0x2d], ecx
mov dl, byte [0x457cdc]
mov byte [ebp - 0x29], dl
mov eax, dword [0x457ce0]
mov dword [ebp - 0x28], eax
mov ecx, dword [0x457ce4]
mov dword [ebp - 0x24], ecx
mov dl, byte [0x457ce8]
mov byte [ebp - 0x20], dl
mov eax, dword [0x457cec]
mov dword [ebp - 0x1f], eax
mov ecx, dword [0x457cf0]
mov dword [ebp - 0x1b], ecx
mov dl, byte [0x457cf4]
mov byte [ebp - 0x17], dl
mov dword [ebp - 8], 0
jmp 0x404339
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 6
jge 0x404366
push 8
mov ecx, dword [ebp - 0xa0]
add ecx, 4
push ecx
mov edx, dword [ebp - 8]
imul edx, edx, 9
lea eax, [ebp + edx - 0x4c]
push eax
call fcn.0043daab
add esp, 0xc
test eax, eax
jne 0x404364
jmp 0x404366
jmp 0x404330
cmp dword [ebp - 8], 6
jne 0x404742
mov dword [ebp - 8], 0
jmp 0x404382
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 8
jge 0x404444
push 0
push 0
push 0x2800
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 4]
push eax
push 6
lea ecx, [ebp - 0x98]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 6
mov eax, dword [ebp - 8]
imul eax, eax, 7
add eax, 0x457bc4
push eax
lea ecx, [ebp - 0x98]
push ecx
call fcn.0043daab
add esp, 0xc
test eax, eax
jne 0x4043e6
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 0x10], edx
jmp 0x404444
push 0
push 0
push 0x3800
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [ebp - 4]
push ecx
push 6
lea edx, [ebp - 0x98]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 6
mov ecx, dword [ebp - 8]
imul ecx, ecx, 7
add ecx, 0x457bc4
push ecx
lea edx, [ebp - 0x98]
push edx
call fcn.0043daab
add esp, 0xc
test eax, eax
jne 0x40443f
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 0x10], eax
jmp 0x404444
jmp 0x404379
cmp dword [ebp - 0x10], 0
jne 0x4044b1
push 0
push 0
push 0x3000
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea edx, [ebp - 4]
push edx
push 4
lea eax, [ebp - 0x98]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 4
push 0x457cf8
lea edx, [ebp - 0x98]
push edx
call fcn.0043daab
add esp, 0xc
test eax, eax
jne 0x404497
mov dword [ebp - 0x10], 4
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x40000
jne 0x4044b1
mov dword [ebp - 0x10], 6
cmp dword [ebp - 0x10], 0
jle 0x4045e9
cmp dword [ebp - 0x10], 1
jne 0x4044d9
push 0
push 0
push 0xe7060
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x404567
cmp dword [ebp - 0x10], 2
jne 0x4044f4
push 0
push 0
push 0xe7060
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x404567
cmp dword [ebp - 0x10], 3
jne 0x40450f
push 0
push 0
push 0x1e7060
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x404567
cmp dword [ebp - 0x10], 4
jne 0x40452a
push 0
push 0
push 0x1ebff4
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x404567
cmp dword [ebp - 0x10], 5
jne 0x404545
push 0
push 0
push 0xe7060
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x404567
cmp dword [ebp - 0x10], 6
jl 0x404560
push 0
push 0
push 0x140b0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x404567
xor eax, eax
jmp 0x40484a
push 0
lea ecx, [ebp - 4]
push ecx
push 0x40
lea edx, [ebp - 0x98]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0x40
push 0
mov ecx, dword [ebp - 0xa0]
add ecx, 4
push ecx
call fcn.0043d340
add esp, 0xc
push 8
lea edx, [ebp - 0x8c]
push edx
mov eax, dword [ebp - 0xa0]
add eax, 4
push eax
call fcn.0043d4e0
add esp, 0xc
push 0x10
lea ecx, [ebp - 0x84]
push ecx
mov edx, dword [ebp - 0xa0]
add edx, 0xe
push edx
call fcn.0043d4e0
add esp, 0xc
push 4
lea eax, [ebp - 0x74]
push eax
mov ecx, dword [ebp - 0xa0]
add ecx, 0x20
push ecx
call fcn.0043d4e0
add esp, 0xc
jmp 0x404742
mov dword [ebp - 8], 0
jmp 0x4045fb
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 4
jge 0x404742
push 0
push 0
push 0x30008
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [ebp - 4]
push ecx
push 4
lea edx, [ebp - 0x98]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 4
mov ecx, dword [ebp - 8]
imul ecx, ecx, 5
add ecx, str.H400
push ecx
lea edx, [ebp - 0x98]
push edx
call fcn.0043daab
add esp, 0xc
test eax, eax
jne 0x40473d
mov dword [ebp - 0xc], 1
push 0
push 0
push 0x30001
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [ebp - 4]
push ecx
push 4
lea edx, [ebp - 0x98]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0x40
push 0
mov ecx, dword [ebp - 0xa0]
add ecx, 4
push ecx
call fcn.0043d340
add esp, 0xc
push 4
lea edx, [ebp - 0x98]
push edx
mov eax, dword [ebp - 0xa0]
add eax, 0x20
push eax
call fcn.0043d4e0
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0xa0]
call fcn.00404140
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x404736
push 0
push 0
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [ebp - 4]
push ecx
push 0x20
lea edx, [ebp - 0x98]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 8
lea ecx, [ebp - 0x98]
push ecx
mov edx, dword [ebp - 0xa0]
add edx, 4
push edx
call fcn.0043d4e0
add esp, 0xc
push 0x10
lea eax, [ebp - 0x90]
push eax
mov ecx, dword [ebp - 0xa0]
add ecx, 0xe
push ecx
call fcn.0043d4e0
add esp, 0xc
jmp 0x40473d
xor eax, eax
jmp 0x40484a
jmp 0x4045f2
mov dword [ebp - 0x9c], 1
mov edx, dword [ebp - 0xa0]
cmp dword [edx + 0x44], 0
je 0x404777
mov eax, dword [ebp - 0xa0]
mov ecx, dword [eax + 0x44]
push ecx
call fcn.0043d948
add esp, 4
mov edx, dword [ebp - 0xa0]
mov dword [edx + 0x44], 0
cmp dword [ebp - 0xc], 0
je 0x404794
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xa0]
call fcn.00403e80
mov dword [ebp - 0x9c], eax
jmp 0x4047cb
cmp dword [ebp - 0x10], 0
jne 0x4047b1
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0xa0]
call fcn.00403a70
mov dword [ebp - 0x9c], eax
jmp 0x4047cb
movzx edx, byte [ebp - 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xa0]
call fcn.00403be0
mov dword [ebp - 0x9c], eax
cmp dword [ebp - 0x9c], 0
je 0x404819
mov ecx, dword [ebp - 0xa0]
add ecx, 0xe
push ecx
call fcn.0043da20
add esp, 4
sub eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jbe 0x404817
mov edx, dword [ebp - 0xa0]
add edx, dword [ebp - 4]
movzx eax, byte [edx + 0xe]
cmp eax, 0x20
je 0x404808
jmp 0x404817
mov ecx, dword [ebp - 0xa0]
add ecx, dword [ebp - 4]
mov byte [ecx + 0xe], 0
jmp 0x4047ec
jmp 0x404844
mov edx, dword [ebp - 0xa0]
cmp dword [edx + 0x44], 0
jne 0x404844
mov eax, dword [ebp - 0xa0]
mov ecx, dword [eax + 0x44]
push ecx
call fcn.0043d948
add esp, 4
mov edx, dword [ebp - 0xa0]
mov dword [edx + 0x44], 0
mov eax, dword [ebp - 0x9c]
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0043d4c7
mov esp, ebp
pop ebp
ret 4