Function at 0x47cda0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
mov eax, dword [0x632b20]
xor eax, ebp
mov dword [ebp - 0x48], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
jmp 0x47cde1
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 8
jge 0x47cdf7
mov ecx, dword [ebp - 0xc]
mov dword [ecx*4 + 0x7d2ee8], 0
jmp 0x47cdd8
mov dword [ebp - 0xc], 0
jmp 0x47ce09
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 8
jge 0x47ceee
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + eax*4]
mov dword [ebp - 0x14c], edx
mov eax, dword [ebp - 0xc]
imul eax, eax, 0xff
add eax, 0x7d2f10
mov dword [ebp - 0x150], eax
mov ecx, dword [ebp - 0x150]
mov dword [ebp - 0x154], ecx
mov edx, dword [ebp - 0x14c]
mov al, byte [edx]
mov byte [ebp - 0x155], al
mov ecx, dword [ebp - 0x150]
mov dl, byte [ebp - 0x155]
mov byte [ecx], dl
mov eax, dword [ebp - 0x14c]
add eax, 1
mov dword [ebp - 0x14c], eax
mov ecx, dword [ebp - 0x150]
add ecx, 1
mov dword [ebp - 0x150], ecx
cmp byte [ebp - 0x155], 0
jne 0x47ce42
push 0x5ead1c
mov edx, dword [ebp - 0xc]
imul edx, edx, 0xff
add edx, 0x7d2f10
push edx
call fcn.005cd6b5
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword [ecx*4 + 0x7d2ee8], eax
mov edx, dword [ebp - 0xc]
cmp dword [edx*4 + 0x7d2ee8], 0
jne 0x47cee9
cmp dword [ebp - 0xc], 0
jne 0x47cec9
jmp 0x47d35f
cmp dword [ebp - 0xc], 3
jne 0x47ced9
jmp 0x47d35f
cmp dword [ebp - 0xc], 6
jne 0x47cee9
jmp 0x47d35f
jmp 0x47ce00
mov dword [ebp - 0xc], 0
jmp 0x47cf00
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 8
jge 0x47d017
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + ecx*4]
mov dword [ebp - 0x15c], eax
mov ecx, dword [ebp - 0xc]
imul ecx, ecx, 0xff
add ecx, 0x7d26f0
mov dword [ebp - 0x160], ecx
mov edx, dword [ebp - 0x160]
mov dword [ebp - 0x164], edx
mov eax, dword [ebp - 0x15c]
mov cl, byte [eax]
mov byte [ebp - 0x165], cl
mov edx, dword [ebp - 0x160]
mov al, byte [ebp - 0x165]
mov byte [edx], al
mov ecx, dword [ebp - 0x15c]
add ecx, 1
mov dword [ebp - 0x15c], ecx
mov edx, dword [ebp - 0x160]
add edx, 1
mov dword [ebp - 0x160], edx
cmp byte [ebp - 0x165], 0
jne 0x47cf3a
push 0x5ead20
mov eax, dword [ebp - 0xc]
imul eax, eax, 0xff
add eax, 0x7d26f0
push eax
call fcn.005cd6b5
add esp, 8
mov dword [0x7d2f08], eax
cmp dword [0x7d2f08], 0
jne 0x47cfdc
cmp dword [ebp - 0xc], 0
jne 0x47cfb7
mov eax, 1
jmp 0x47d3d9
cmp dword [ebp - 0xc], 3
jne 0x47cfc7
mov eax, 2
jmp 0x47d3d9
cmp dword [ebp - 0xc], 6
jne 0x47cfd7
mov eax, 7
jmp 0x47d3d9
jmp 0x47cef7
push 2
push 0
mov ecx, dword [0x7d2f08]
push ecx
call fcn.005cdc9c
add esp, 0xc
mov edx, dword [0x7d2f08]
push edx
call fcn.005ceb55
add esp, 4
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [0x7d2f08]
push eax
call fcn.005cd459
add esp, 4
jmp 0x47cef7
mov eax, dword [ebp - 0x14]
xor edx, edx
mov ecx, 0x28
div ecx
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
add edx, 0xa
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
mov dword [0x7d2f0c], eax
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [0x1267cb8]
jl 0x47d084
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [0x1267cb8]
push eax
push str.MAX_GRAPHICS_d_Need_d
lea ecx, [ebp - 0x148]
push ecx
call fcn.005cc4f5
add esp, 0x10
push 0
push str.sprmgr:_MAX_GRAPHICS
lea edx, [ebp - 0x148]
push edx
mov eax, dword [0x9cef70]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x47d35f
mov ecx, dword [ebp - 0x10]
add ecx, 0xa
mov dword [ebp - 0x10], ecx
mov edx, dword [0x1267cb8]
lea eax, [edx*4 + 0x28]
push eax
call fcn.005ccae8
add esp, 4
mov dword [0x9cbbec], eax
cmp dword [0x9cbbec], 0
jne 0x47d0b9
or eax, 0xffffffff
jmp 0x47d3d9
mov ecx, dword [0x1267cb8]
shl ecx, 2
push ecx
push 0
mov edx, dword [0x9cbbec]
push edx
call fcn.005cbc50
add esp, 0xc
mov dword [ebp - 0xc], 0
jmp 0x47d0e6
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 8
jge 0x47d2e2
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
mov dword [ecx*4 + 0x7d3744], edx
push 0x5ead58
mov eax, dword [ebp - 0xc]
imul eax, eax, 0xff
add eax, 0x7d26f0
push eax
call fcn.005cd6b5
add esp, 8
mov dword [0x7d2f08], eax
cmp dword [0x7d2f08], 0
jne 0x47d159
cmp dword [ebp - 0xc], 0
jne 0x47d137
mov eax, 1
jmp 0x47d3d9
cmp dword [ebp - 0xc], 3
jne 0x47d147
mov eax, 2
jmp 0x47d3d9
cmp dword [ebp - 0xc], 6
jne 0x47d157
mov eax, 7
jmp 0x47d3d9
jmp 0x47d0dd
mov ecx, dword [0x7d2f08]
push ecx
call fcn.005ce950
add esp, 4
test eax, eax
jne 0x47d2c8
mov edx, dword [0x7d2f08]
push edx
push 1
push 0x28
lea eax, [ebp - 0x44]
push eax
call fcn.005cdfc1
add esp, 0x10
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x44]
add edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
shl eax, 5
mov ecx, dword [0x9cbbe8]
mov edx, dword [ebp - 0x1c]
mov dword [ecx + eax], edx
mov eax, dword [ebp - 0x1c]
shl eax, 5
mov ecx, dword [0x9cbbe8]
mov edx, dword [ebp - 0x40]
mov dword [ecx + eax + 4], edx
mov eax, dword [ebp - 0x1c]
shl eax, 5
mov ecx, dword [0x9cbbe8]
mov edx, dword [ebp - 0x3c]
mov dword [ecx + eax + 8], edx
mov eax, dword [ebp - 0x1c]
shl eax, 5
mov ecx, dword [0x9cbbe8]
mov dx, word [ebp - 0x38]
mov word [ecx + eax + 0xc], dx
mov eax, dword [ebp - 0x1c]
shl eax, 5
mov ecx, dword [0x9cbbe8]
mov dx, word [ebp - 0x34]
mov word [ecx + eax + 0xe], dx
mov eax, dword [ebp - 0x1c]
shl eax, 5
mov ecx, dword [0x9cbbe8]
mov dx, word [ebp - 0x30]
mov word [ecx + eax + 0x10], dx
mov eax, dword [ebp - 0x1c]
shl eax, 5
mov ecx, dword [0x9cbbe8]
mov dx, word [ebp - 0x2c]
mov word [ecx + eax + 0x12], dx
mov eax, dword [ebp - 0x1c]
shl eax, 5
mov ecx, dword [0x9cbbe8]
mov dl, byte [ebp - 0x28]
mov byte [ecx + eax + 0x18], dl
mov eax, dword [ebp - 0x1c]
shl eax, 5
mov ecx, dword [0x9cbbe8]
mov dl, byte [ebp - 0x27]
mov byte [ecx + eax + 0x19], dl
mov eax, dword [ebp - 0x1c]
shl eax, 5
mov ecx, dword [0x9cbbe8]
mov dx, word [ebp - 0x26]
mov word [ecx + eax + 0x1a], dx
mov eax, dword [ebp - 0x1c]
shl eax, 5
mov ecx, dword [0x9cbbe8]
mov edx, dword [ebp - 0x20]
mov dword [ecx + eax + 0x1c], edx
mov eax, dword [ebp - 0x1c]
shl eax, 5
mov ecx, dword [0x9cbbe8]
mov dx, word [ebp - 0xc]
mov word [ecx + eax + 0x14], dx
cmp dword [ebp - 0x20], 0
je 0x47d2b8
mov eax, dword [ebp - 0x20]
cmp eax, dword [0x1267cb8]
jae 0x47d2a8
mov ecx, dword [ebp - 0x20]
mov edx, dword [0x9cbbec]
mov eax, dword [ebp - 0x1c]
mov dword [edx + ecx*4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x20]
jae 0x47d2b6
mov edx, dword [ebp - 0x20]
mov dword [ebp - 4], edx
jmp 0x47d2c3
mov eax, dword [0x9cbbec]
mov dword [eax], 0
jmp 0x47d159
mov ecx, dword [0x7d2f08]
push ecx
call fcn.005cd459
add esp, 4
mov edx, dword [ebp - 8]
mov dword [ebp - 0x18], edx
jmp 0x47d0dd
mov eax, dword [0x9cbbec]
cmp dword [eax + 0xef4c0], 0
je 0x47d300
mov ecx, dword [0x9cbbec]
mov dword [ecx + 0xef4c0], 0x9999d
mov edx, dword [0x9cbbec]
cmp dword [edx + 0xef4e8], 0
je 0x47d31e
mov eax, dword [0x9cbbec]
mov dword [eax + 0xef4e8], 0x9999e
mov ecx, dword [0x9cbbec]
cmp dword [ecx + 0xef510], 0
je 0x47d33d
mov edx, dword [0x9cbbec]
mov dword [edx + 0xef510], 0x9999f
mov eax, dword [0x9cbbec]
cmp dword [eax + 0xefa88], 0
je 0x47d35b
mov ecx, dword [0x9cbbec]
mov dword [ecx + 0xefa88], 0x999a0
xor eax, eax
jmp 0x47d3d9
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], 0
jmp 0x47d377
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 8
jge 0x47d3ad
mov ecx, dword [ebp - 0xc]
cmp dword [ecx*4 + 0x7d2ee8], 0
je 0x47d3ab
mov edx, dword [ebp - 0xc]
mov eax, dword [edx*4 + 0x7d2ee8]
push eax
call fcn.005cd459
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword [ecx*4 + 0x7d2ee8], 0
jmp 0x47d36e
cmp dword [ebp - 0x10], 0
jne 0x47d3ba
mov eax, 1
jmp 0x47d3d9
cmp dword [ebp - 0x10], 3
jne 0x47d3c7
mov eax, 2
jmp 0x47d3d9
cmp dword [ebp - 0x10], 6
jne 0x47d3d4
mov eax, 7
jmp 0x47d3d9
mov eax, 3
mov ecx, dword [ebp - 0x48]
xor ecx, ebp
call fcn.005cbcfe
mov esp, ebp
pop ebp
ret