Function at 0x482c20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5baf25
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push esi
push edi
mov eax, dword [0x634b28]
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 0x482f10
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 0x482f09
cmp dword [ebp + 8], 6
jne 0x482f09
cmp word [ebp - 0x32], 1
jne 0x482f09
mov ax, word [ebp - 0x30]
test ax, ax
je 0x482f09
movzx eax, ax
shl eax, 4
push eax
call fcn.005823cc
mov esi, eax
add esp, 4
mov dword [ebp - 0x2c], esi
test esi, esi
je 0x482f09
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 0x482f00
movzx ecx, word [ebp - 0x30]
mov eax, ecx
shl eax, 4
cmp dword [ebp + 8], eax
jne 0x482f00
xor edi, edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
test ecx, ecx
je 0x482eda
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.0047c330
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 4], 0
cmp ecx, dword [ebp - 0x10]
jne 0x482d3e
cmp eax, esi
je 0x482d4e
test ecx, ecx
jne 0x482eaf
test eax, eax
jne 0x482eaf
push 0
push 0
push dword [edi + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
je 0x482eaf
push dword [edi]
call fcn.005823cc
mov esi, eax
add esp, 4
test esi, esi
je 0x482eaf
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 0x482ea6
mov eax, dword [edi]
cmp dword [ebp + 8], eax
jne 0x482ea6
cmp word [esi + 0xe], 0x20
jne 0x482e5b
lea ecx, [ebp - 0x44]
call fcn.0055295f
push 0
mov byte [ebp - 4], 1
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [ebp - 0x44]
call fcn.00553268
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 0x482e4d
test ecx, ecx
je 0x482e4d
mov ecx, dword [esi + 0x14]
lea edx, [esi + 0x28]
test ecx, ecx
je 0x482e42
push ecx
test edx, edx
je 0x482e27
push edx
push eax
call fcn.0057e070
add esp, 0xc
jmp 0x482e42
push 0
push eax
call fcn.0057e5f0
add esp, 0xc
call fcn.00582661
mov dword [eax], 0x16
call fcn.00582350
push dword [ebp - 0x24]
lea ecx, [ebp - 0x68]
call fcn.0047c8d0
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0
call fcn.00552a71
jmp 0x482e7b
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.0047c910
lea ecx, [ebp - 0x68]
call fcn.00480b90
test eax, eax
jne 0x482ea6
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.00482900
mov dword [ebp - 0x20], 1
push esi
call fcn.005823b1
add esp, 4
lea ecx, [ebp - 0x68]
mov dword [ebp - 4], 0xffffffff
call fcn.0047c740
mov ecx, dword [ebp - 0x1c]
add edi, 0x10
movzx eax, word [ebp - 0x30]
inc ecx
mov dword [ebp - 0x1c], ecx
cmp ecx, eax
jl 0x482d12
mov esi, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x20]
push esi
call fcn.005823b1
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.005823b1
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