Function at 0x480630
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5953d0
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push esi
push edi
mov eax, dword [0x60b4e0]
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 0x4808fd
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 0x4808f6
cmp dword [ebp + 8], 6
jne 0x4808f6
cmp word [ebp - 0x32], 1
jne 0x4808f6
mov ax, word [ebp - 0x30]
test ax, ax
je 0x4808f6
movzx eax, ax
shl eax, 4
push eax
call fcn.0056181a
mov esi, eax
add esp, 4
mov dword [ebp - 0x2c], esi
test esi, esi
je 0x4808f6
push 0
lea eax, [ebp + 8]
push eax
movzx eax, word [ebp - 0x30]
shl eax, 4
push eax
push esi
push ebx
call edi
test eax, eax
je 0x4808ed
movzx ecx, word [ebp - 0x30]
mov eax, ecx
shl eax, 4
cmp dword [ebp + 8], eax
jne 0x4808ed
xor edi, edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
test ecx, ecx
je 0x4808c7
lea edi, [esi + 8]
movzx eax, byte [edi - 7]
lea ecx, [ebp - 0x68]
movzx esi, byte [edi - 8]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], esi
call fcn.00479c70
push dword [ebp - 0x10]
lea ecx, [ebp + 0x10]
mov dword [ebp - 4], 0
push esi
call fcn.0047a250
test eax, eax
jne 0x480761
push eax
push eax
lea ecx, [ebp + 0x10]
call fcn.0047a250
test eax, eax
je 0x48089c
push 0
push 0
push dword [edi + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
je 0x48089c
push dword [edi]
call fcn.0056181a
mov esi, eax
add esp, 4
test esi, esi
je 0x48089c
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 0x480893
mov eax, dword [edi]
cmp dword [ebp + 8], eax
jne 0x480893
cmp word [esi + 0xe], 0x20
jne 0x480848
lea ecx, [ebp - 0x44]
call fcn.00532434
push 0
mov byte [ebp - 4], 1
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [ebp - 0x44]
call fcn.00532c91
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 edx, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
test edx, edx
je 0x48083a
test eax, eax
je 0x48083a
mov ecx, dword [esi + 0x14]
lea eax, [esi + 0x28]
push ecx
push eax
push ecx
push edx
call fcn.004815e0
add esp, 0x10
lea ecx, [ebp - 0x68]
push dword [ebp - 0x24]
call fcn.0047a1d0
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0
call fcn.00532541
jmp 0x480868
push 0
push dword [ebp - 0x10]
push dword [ebp - 0x18]
push 0x30000
push 1
push eax
push esi
call dword [sym.imp.USER32.dll_CreateIconFromResourceEx]
push eax
lea ecx, [ebp - 0x68]
call fcn.0047a210
lea ecx, [ebp - 0x68]
call fcn.0047e4f0
test eax, eax
jne 0x480893
push dword [ebp + 0x18]
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x68]
push dword [ebp - 0x10]
push dword [ebp - 0x18]
push dword [ebp + 0xc]
push eax
call fcn.00480310
mov dword [ebp - 0x20], 1
push esi
call fcn.00561815
add esp, 4
lea ecx, [ebp - 0x68]
mov dword [ebp - 4], 0xffffffff
call fcn.0047a050
mov ecx, dword [ebp - 0x1c]
add edi, 0x10
movzx eax, word [ebp - 0x30]
inc ecx
mov dword [ebp - 0x1c], ecx
cmp ecx, eax
jl 0x480722
mov esi, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x20]
push esi
call fcn.00561815
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.00561815
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