Function at 0x4721c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov dword [ebp - 0x40], ecx
mov eax, dword [ebp - 0x40]
cmp dword [eax + 8], 0
je 0x4721d7
jmp 0x4723f7
mov ecx, dword [ebp - 0x40]
movzx edx, byte [ecx + 0x17]
cmp edx, 1
jne 0x472240
mov eax, dword [ebp - 0x40]
cmp dword [eax + 4], 0xffff
jae 0x47221b
push 0x2000
push 0
push 0
push 0
mov ecx, dword [ebp - 0x40]
movzx edx, word [ecx + 4]
push edx
mov ecx, 0x55c540
call fcn.00472400
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
mov ecx, dword [ebp - 0x40]
mov dword [ecx + 8], eax
jmp 0x47223b
push 0x2010
push 0
push 0
push 0
mov edx, dword [ebp - 0x40]
mov eax, dword [edx + 4]
push eax
push 0
call dword [sym.imp.USER32.dll_LoadImageW]
mov ecx, dword [ebp - 0x40]
mov dword [ecx + 8], eax
jmp 0x472389
mov edx, dword [ebp - 0x40]
cmp dword [edx + 4], 0xffff
jae 0x4722b8
lea ecx, [ebp - 8]
call fcn.00472410
mov eax, dword [ebp - 0x40]
movzx ecx, byte [eax + 0x17]
cmp ecx, 3
jne 0x4722ab
push ecx
mov ecx, esp
mov edx, dword [ebp - 0x40]
mov eax, dword [edx + 4]
push eax
call fcn.0046ea90
push ecx
mov ecx, esp
push 0x52b794
call fcn.00471ef0
lea ecx, [ebp - 8]
call fcn.00472460
movzx ecx, al
test ecx, ecx
je 0x4722ab
lea ecx, [ebp - 8]
call fcn.004724d0
push eax
lea ecx, [ebp - 8]
call fcn.004724f0
push eax
call fcn.00466220
add esp, 8
mov edx, dword [ebp - 0x40]
mov dword [edx + 8], eax
lea ecx, [ebp - 8]
call fcn.00472440
jmp 0x472389
mov dword [ebp - 0xc], 0
push 0x52b78c
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax + 4]
push ecx
lea edx, [ebp - 0xc]
push edx
call fcn.004ef3dc
add esp, 0xc
test eax, eax
jne 0x472389
cmp dword [ebp - 0xc], 0
je 0x472389
push 2
push 0
mov eax, dword [ebp - 0xc]
push eax
call fcn.004ef27a
add esp, 0xc
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.004ef182
add esp, 4
mov dword [ebp - 0x14], eax
push 0
push 0
mov edx, dword [ebp - 0xc]
push edx
call fcn.004ef27a
add esp, 0xc
mov eax, dword [ebp - 0x14]
push eax
call fcn.004e68e6
add esp, 4
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
je 0x47237d
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x14]
push eax
push 1
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.004eefc8
add esp, 0x10
mov edx, dword [ebp - 0x40]
movzx eax, byte [edx + 0x17]
cmp eax, 3
jne 0x47236b
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.00466220
add esp, 8
mov ecx, dword [ebp - 0x40]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x3c]
push eax
call fcn.004ecc45
add esp, 4
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.004eec8f
add esp, 4
mov edx, dword [ebp - 0x40]
cmp dword [edx + 8], 0
jne 0x4723b8
xor eax, eax
mov ecx, dword [ebp - 0x40]
mov word [ecx + 0x14], ax
mov edx, dword [ebp - 0x40]
mov dword [edx + 0xc], 0
mov eax, dword [ebp - 0x40]
mov dword [eax + 0x10], 0
mov ecx, dword [ebp - 0x40]
mov byte [ecx + 0x16], 0
jmp 0x4723f7
lea edx, [ebp - 0x2c]
push edx
push 0x18
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.GDI32.dll_GetObjectW]
mov edx, dword [ebp - 0x40]
movzx ecx, word [edx + 0x14]
mov eax, dword [ebp - 0x28]
cdq
idiv ecx
mov edx, dword [ebp - 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x24]
mov dword [eax + 0x10], ecx
movzx edx, word [ebp - 0x1a]
cmp edx, 0x20
sete al
mov ecx, dword [ebp - 0x40]
mov byte [ecx + 0x16], al
mov esp, ebp
pop ebp
ret