Function at 0x562ef0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x678f00
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x71d5e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp + 8]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
mov dword [ebp - 0x10], ebx
cmp ebx, 0xffffffff
je 0x5631ca
push 0
lea ecx, [ebp + 8]
push ecx
push 6
lea edx, [ebp - 0x30]
push edx
push ebx
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5631c3
cmp dword [ebp + 8], 6
jne 0x5631c3
cmp word [ebp - 0x2e], 1
jne 0x5631c3
mov ax, word [ebp - 0x2c]
test ax, ax
je 0x5631c3
movzx esi, ax
shl esi, 4
push esi
call fcn.0050102f
mov edi, eax
add esp, 4
mov dword [ebp - 0x28], edi
test edi, edi
je 0x5631c3
push 0
lea eax, [ebp + 8]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5631ba
movzx eax, word [ebp - 0x2c]
mov ecx, eax
shl ecx, 4
cmp dword [ebp + 8], ecx
jne 0x5631ba
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x18], ecx
cmp eax, ecx
jle 0x563193
add edi, 8
mov dword [ebp - 0x1c], edi
movzx esi, byte [edi - 8]
movzx ebx, byte [edi - 7]
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x38], esi
call fcn.0055e4d0
push ebx
push esi
lea ecx, [ebp + 0x10]
mov dword [ebp - 4], 0
call fcn.00410a58
test eax, eax
jne 0x563020
xor ecx, ecx
push ecx
push eax
lea ecx, [ebp + 0x10]
call fcn.00410a58
test eax, eax
je 0x563165
mov edx, dword [edi + 4]
mov eax, dword [ebp - 0x10]
push 0
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
je 0x563165
mov ecx, dword [edi]
push ecx
call fcn.0050102f
mov esi, eax
add esp, 4
test esi, esi
je 0x563165
mov ecx, dword [ebp - 0x10]
push 0
lea edx, [ebp + 8]
push edx
mov dword [ebp + 8], 0
mov eax, dword [edi]
push eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x56315c
mov eax, dword [edi]
cmp dword [ebp + 8], eax
jne 0x56315c
cmp word [esi + 0xe], 0x20
jne 0x563111
lea ecx, [ebp - 0x48]
call fcn.00413b77
push 0
mov byte [ebp - 4], 1
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [ebp - 0x48]
call fcn.00414282
mov eax, dword [esi + 8]
mov ecx, dword [ebp - 0x44]
cdq
sub eax, edx
mov edx, dword [esi + 4]
sar eax, 1
imul edx, eax
push 0
push 0
mov dword [esi + 8], eax
lea eax, [ebp - 0x14]
push eax
push 0
add edx, edx
push esi
add edx, edx
push ecx
mov dword [esi + 0x14], edx
mov dword [ebp - 0x14], 0
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov edi, eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x563100
test edi, edi
je 0x563100
mov edx, dword [esi + 0x14]
push edx
lea ecx, [esi + 0x28]
push ecx
push eax
call fcn.0051e240
add esp, 0xc
push edi
lea ecx, [ebp - 0x6c]
call fcn.00560450
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0
call fcn.00414303
mov edi, dword [ebp - 0x1c]
jmp 0x563130
mov edx, dword [ebp - 0x38]
push 0
push ebx
push edx
push 0x30000
push 1
push eax
push esi
call dword [sym.imp.USER32.dll_CreateIconFromResourceEx]
push eax
lea ecx, [ebp - 0x6c]
call fcn.00560410
lea ecx, [ebp - 0x6c]
call fcn.0055e4e0
test eax, eax
jne 0x56315c
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp + 0xc]
push eax
push ebx
push ecx
mov ecx, dword [ebp - 0x24]
push edx
lea eax, [ebp - 0x6c]
push eax
call fcn.005625c0
mov dword [ebp - 0x20], 1
push esi
call fcn.00500ff5
add esp, 4
lea ecx, [ebp - 0x6c]
mov dword [ebp - 4], 0xffffffff
call fcn.00560490
mov eax, dword [ebp - 0x18]
movzx ecx, word [ebp - 0x2c]
inc eax
add edi, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edi
cmp eax, ecx
jl 0x562fe4
mov edi, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x10]
push edi
call fcn.00500ff5
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
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 edi
call fcn.00500ff5
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