Function at 0x47eb01
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov dword [ebp - 4], 0
push 0x8000
mov eax, dword [ebp + 0xc]
push eax
call fcn.005a0209
add esp, 8
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0xffffffff
jne 0x47eb65
cmp dword [0x5efc0c], 0
je 0x47eb3c
mov ecx, dword [0x5efc0c]
mov dword [ebp - 0x3c], ecx
jmp 0x47eb44
call fcn.0050afb0
mov dword [ebp - 0x3c], eax
mov edx, dword [ebp - 0x3c]
push edx
call dword [0x5be788]
add esp, 4
push 0x8000
mov eax, dword [ebp + 0xc]
push eax
call fcn.005a0209
add esp, 8
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0xffffffff
jne 0x47eb75
mov eax, 1
jmp 0x47ed31
push 0x16
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x34]
push edx
call fcn.0059a0e4
add esp, 0xc
cmp eax, 0x16
je 0x47eba2
mov eax, dword [ebp - 0x34]
push eax
call fcn.005974b0
add esp, 4
mov eax, 1
jmp 0x47ed31
push 2
push 0
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.00595983
add esp, 0xc
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x24], 0x9ac6cdd7
jne 0x47ebe0
push 0
push 0x16
mov edx, dword [ebp - 0x34]
push edx
call fcn.00595983
add esp, 0xc
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x38]
sub eax, 0x16
mov dword [ebp - 0x38], eax
jmp 0x47ebf0
push 0
push 0
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.00595983
add esp, 0xc
mov edx, dword [ebp - 0x38]
push edx
call fcn.0059306c
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x47ec1b
mov eax, dword [ebp - 0x34]
push eax
call fcn.005974b0
add esp, 4
mov eax, 2
jmp 0x47ed31
mov dword [ebp - 0x2c], 0
cmp dword [ebp - 0x38], 0xfffe
jle 0x47ec34
mov dword [ebp - 0x40], 0xfffe
jmp 0x47ec3a
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x30], edx
cmp dword [ebp - 0x30], 0
je 0x47ec99
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x34]
push edx
call fcn.0059a0e4
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jge 0x47ec68
jmp 0x47ec99
mov eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x38]
sub ecx, dword [ebp - 0x2c]
cmp ecx, 0xfffe
jle 0x47ec88
mov dword [ebp - 0x44], 0xfffe
jmp 0x47ec91
mov edx, dword [ebp - 0x38]
sub edx, dword [ebp - 0x2c]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x30], eax
jmp 0x47ec40
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.005974b0
add esp, 4
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.GDI32.dll_SetMetaFileBitsEx]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x47eccf
mov ecx, dword [ebp - 8]
push ecx
call fcn.00593e07
add esp, 4
mov eax, 3
jmp 0x47ed31
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.GDI32.dll_SaveDC]
push 5
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.GDI32.dll_SetMapMode]
cmp dword [ebp - 4], 0
je 0x47ecff
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0047ed35
add esp, 0xc
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.GDI32.dll_PlayMetaFile]
push 0xffffffffffffffff
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.GDI32.dll_RestoreDC]
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.GDI32.dll_DeleteMetaFile]
mov edx, dword [ebp - 8]
push edx
call fcn.00593e07
add esp, 4
xor eax, eax
mov esp, ebp
pop ebp
ret