Function at 0x49e190
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5dca25
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push esi
push edi
mov eax, dword [0x65eb68]
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 SysReAllocStringLen
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x49e480
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 0x49e479
cmp dword [ebp + 8], 6
jne 0x49e479
cmp word [ebp - 0x32], 1
jne 0x49e479
mov ax, word [ebp - 0x30]
test ax, ax
je 0x49e479
movzx eax, ax
shl eax, 4
push eax
call fcn.005a199c
mov esi, eax
add esp, 4
mov dword [ebp - 0x2c], esi
test esi, esi
je 0x49e479
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 0x49e470
movzx ecx, word [ebp - 0x30]
mov eax, ecx
shl eax, 4
cmp dword [ebp + 8], eax
jne 0x49e470
xor edi, edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
test ecx, ecx
je 0x49e44a
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.004978a0
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 4], 0
cmp ecx, dword [ebp - 0x10]
jne 0x49e2ae
cmp eax, esi
je 0x49e2be
test ecx, ecx
jne 0x49e41f
test eax, eax
jne 0x49e41f
push 0
push 0
push dword [edi + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
je 0x49e41f
push dword [edi]
call fcn.005a199c
mov esi, eax
add esp, 4
test esi, esi
je 0x49e41f
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 0x49e416
mov eax, dword [edi]
cmp dword [ebp + 8], eax
jne 0x49e416
cmp word [esi + 0xe], 0x20
jne 0x49e3cb
lea ecx, [ebp - 0x44]
call fcn.0057124f
push 0
mov byte [ebp - 4], 1
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [ebp - 0x44]
call fcn.00571b58
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 0x49e3bd
test ecx, ecx
je 0x49e3bd
mov ecx, dword [esi + 0x14]
lea edx, [esi + 0x28]
test ecx, ecx
je 0x49e3b2
push ecx
test edx, edx
je 0x49e397
push edx
push eax
call fcn.0059d630
add esp, 0xc
jmp 0x49e3b2
push 0
push eax
call fcn.0059dbb0
add esp, 0xc
call fcn.005a1c31
mov dword [eax], 0x16
call fcn.005a1920
push dword [ebp - 0x24]
lea ecx, [ebp - 0x68]
call fcn.00497e40
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0
call fcn.00571361
jmp 0x49e3eb
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.00497e80
lea ecx, [ebp - 0x68]
call fcn.0049c100
test eax, eax
jne 0x49e416
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.0049de70
mov dword [ebp - 0x20], 1
push esi
call fcn.005a1981
add esp, 4
lea ecx, [ebp - 0x68]
mov dword [ebp - 4], 0xffffffff
call fcn.00497cb0
mov ecx, dword [ebp - 0x1c]
add edi, 0x10
movzx eax, word [ebp - 0x30]
inc ecx
mov dword [ebp - 0x1c], ecx
cmp ecx, eax
jl 0x49e282
mov esi, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x20]
push esi
call fcn.005a1981
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.005a1981
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