Function at 0x472050
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ac995
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push esi
push edi
mov eax, dword [0x6244f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], ecx
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x472340
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp + 8]
push 0
push eax
push 6
lea eax, [ebp - 0x34]
mov dword [ebp + 8], 0
push eax
push ebx
call edi
test eax, eax
je 0x472339
cmp dword [ebp + 8], 6
jne 0x472339
cmp word [ebp - 0x32], 1
jne 0x472339
mov ax, word [ebp - 0x30]
test ax, ax
je 0x472339
movzx eax, ax
shl eax, 4
push eax
call fcn.00574fb6
mov esi, eax
add esp, 4
mov dword [ebp - 0x2c], esi
test esi, esi
je 0x472339
movzx ecx, word [ebp - 0x30]
lea eax, [ebp + 8]
push 0
push eax
shl ecx, 4
push ecx
push esi
push ebx
call edi
test eax, eax
je 0x472330
movzx ecx, word [ebp - 0x30]
mov eax, ecx
shl eax, 4
cmp dword [ebp + 8], eax
jne 0x472330
xor edi, edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
test ecx, ecx
je 0x47230a
lea edi, [esi + 8]
movzx esi, byte [edi - 7]
lea ecx, [ebp - 0x68]
movzx eax, byte [edi - 8]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], eax
call fcn.0046b530
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 4], 0
cmp ecx, dword [ebp - 0x10]
jne 0x47216e
cmp eax, esi
je 0x47217e
test ecx, ecx
jne 0x4722df
test eax, eax
jne 0x4722df
push 0
push 0
push dword [edi + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
je 0x4722df
push dword [edi]
call fcn.00574fb6
mov esi, eax
add esp, 4
test esi, esi
je 0x4722df
push 0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push dword [edi]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4722d6
mov eax, dword [edi]
cmp dword [ebp + 8], eax
jne 0x4722d6
cmp word [esi + 0xe], 0x20
jne 0x47228b
lea ecx, [ebp - 0x44]
call fcn.0054579f
push 0
mov byte [ebp - 4], 1
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [ebp - 0x44]
call fcn.005460a8
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
cdq
sub eax, edx
mov dword [ebp - 0x14], 0
push 0
sar eax, 1
push 0
imul ecx, eax
mov dword [esi + 8], eax
lea eax, [ebp - 0x14]
push eax
push 0
push esi
push dword [ebp - 0x40]
shl ecx, 2
mov dword [esi + 0x14], ecx
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov ecx, eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], ecx
test eax, eax
je 0x47227d
test ecx, ecx
je 0x47227d
mov ecx, dword [esi + 0x14]
lea edx, [esi + 0x28]
test ecx, ecx
je 0x472272
push ecx
test edx, edx
je 0x472257
push edx
push eax
call fcn.00570860
add esp, 0xc
jmp 0x472272
push 0
push eax
call fcn.00570de0
add esp, 0xc
call fcn.0057524b
mov dword [eax], 0x16
call fcn.00574b40
push dword [ebp - 0x24]
lea ecx, [ebp - 0x68]
call fcn.0046bae0
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0
call fcn.005458b1
jmp 0x4722ab
push 0
push dword [ebp - 0x18]
push dword [ebp - 0x10]
push 0x30000
push 1
push eax
push esi
call dword [sym.imp.USER32.dll_CreateIconFromResourceEx]
push eax
lea ecx, [ebp - 0x68]
call fcn.0046bb20
lea ecx, [ebp - 0x68]
call fcn.0046ff00
test eax, eax
jne 0x4722d6
push dword [ebp + 0x18]
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x68]
push dword [ebp - 0x18]
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push eax
call fcn.00471d30
mov dword [ebp - 0x20], 1
push esi
call fcn.00574f9b
add esp, 4
lea ecx, [ebp - 0x68]
mov dword [ebp - 4], 0xffffffff
call fcn.0046b950
mov ecx, dword [ebp - 0x1c]
add edi, 0x10
movzx eax, word [ebp - 0x30]
inc ecx
mov dword [ebp - 0x1c], ecx
cmp ecx, eax
jl 0x472142
mov esi, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x20]
push esi
call fcn.00574f9b
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push esi
call fcn.00574f9b
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14