Function at 0x4549b0
Capabilities:
Extract resource via kernel32 functions
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4af039
mov eax, dword fs:[0]
push eax
sub esp, 0x37c
mov eax, dword [0x4d0c20]
xor eax, ebp
mov dword [ebp - 0x68], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], 0
cmp dword [ebp + 0xc], 0
jne 0x454d09
call fcn.004197b0
push eax
lea ecx, [ebp - 0xf4]
call fcn.00424bb0
mov dword [ebp - 4], 0
call fcn.004197c0
mov ecx, eax
call fcn.00424e10
movzx eax, al
test eax, eax
je 0x454b5a
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0xf4]
call fcn.00424f30
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp - 0xf4]
call fcn.00424e70
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xf8], eax
cmp dword [ebp - 0xf8], 0xffffffff
jne 0x454a7c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf4]
call fcn.00424bf0
jmp 0x454def
push 0
mov edx, dword [ebp - 0xf8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x454ab8
mov eax, dword [ebp - 0xf8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf4]
call fcn.00424bf0
jmp 0x454def
mov dword [ebp - 0xfc], 0
mov ecx, dword [ebp - 0x20]
add ecx, 1
push ecx
call fcn.004189fc
add esp, 4
mov dword [ebp - 0x360], eax
mov edx, dword [ebp - 0x360]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x20]
mov byte [eax], 0
push 0
lea ecx, [ebp - 0xfc]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0xf8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0xf8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xfc]
cmp eax, dword [ebp - 0x20]
je 0x454b55
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x364], ecx
mov edx, dword [ebp - 0x364]
push edx
call fcn.00493b0b
add esp, 4
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf4]
call fcn.00424bf0
jmp 0x454def
jmp 0x454cf2
call fcn.004197c0
push eax
lea ecx, [ebp - 0xf4]
call fcn.00424f00
mov dword [ebp - 0x104], 0
call fcn.004197d0
movzx eax, al
test eax, eax
je 0x454b8e
call fcn.004197e0
mov dword [ebp - 0x104], eax
jmp 0x454bae
call fcn.004197f0
push eax
lea ecx, [ebp - 0xf4]
call fcn.00424e70
push eax
call fcn.00417390
add esp, 8
mov dword [ebp - 0x104], eax
cmp dword [ebp - 0x104], 0
jne 0x454bce
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf4]
call fcn.00424bf0
jmp 0x454def
lea ecx, [ebp - 0x33c]
push ecx
lea edx, [ebp - 0x108]
push edx
push 1
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x104]
push ecx
call fcn.00417460
add esp, 0x14
test eax, eax
je 0x454c0c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf4]
call fcn.00424bf0
jmp 0x454def
mov edx, dword [ebp - 0x110]
mov dword [ebp - 0x20], edx
cmp dword [ebp - 0x20], 0
jne 0x454c32
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf4]
call fcn.00424bf0
jmp 0x454def
mov eax, dword [ebp - 0x20]
push eax
call fcn.004189fc
add esp, 4
mov dword [ebp - 0x368], eax
mov ecx, dword [ebp - 0x368]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x108]
push ecx
mov edx, dword [ebp - 0x104]
push edx
call fcn.00417560
add esp, 0x10
mov dword [ebp - 0x100], eax
cmp dword [ebp - 0x100], 0
je 0x454cd7
cmp dword [ebp - 0x100], 0x600
je 0x454cd7
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x36c], eax
mov ecx, dword [ebp - 0x36c]
push ecx
call fcn.00493b0b
add esp, 4
mov dword [ebp - 0x14], 0
call fcn.004197d0
movzx edx, al
test edx, edx
jne 0x454cc0
mov eax, dword [ebp - 0x104]
push eax
call fcn.004175e0
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf4]
call fcn.00424bf0
jmp 0x454def
call fcn.004197d0
movzx ecx, al
test ecx, ecx
jne 0x454cf2
mov edx, dword [ebp - 0x104]
push edx
call fcn.004175e0
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf4]
call fcn.00424bf0
jmp 0x454de7
push str.COLOR
mov eax, dword [ebp + 0xc]
push eax
call fcn.0049566d
add esp, 8
test eax, eax
jne 0x454d2a
mov dword [ebp - 0x14], 1
jmp 0x454de7
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00419790
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x344], eax
cmp dword [ebp - 0x344], 0
jne 0x454d52
jmp 0x454def
mov eax, dword [ebp - 0x344]
push eax
call fcn.00419790
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x340], eax
cmp dword [ebp - 0x340], 0
jne 0x454d83
mov ecx, dword [ebp - 0x344]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x454def
mov edx, dword [ebp - 0x344]
push edx
call fcn.00419790
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x454da1
jmp 0x454def
mov eax, dword [ebp - 0x20]
push eax
call fcn.004189fc
add esp, 4
mov dword [ebp - 0x370], eax
mov ecx, dword [ebp - 0x370]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x340]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.004956b0
add esp, 0xc
mov edx, dword [ebp - 0x344]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
jne 0x4549ea
cmp dword [ebp - 0x14], 0
jne 0x454ee0
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x348], eax
cmp dword [ebp - 0x348], 0xffffffff
jne 0x454e29
jmp 0x454ee0
push 0
mov edx, dword [ebp - 0x348]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x454e53
mov eax, dword [ebp - 0x348]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x454ee0
mov dword [ebp - 0x34c], 0
mov ecx, dword [ebp - 0x20]
add ecx, 1
push ecx
call fcn.004189fc
add esp, 4
mov dword [ebp - 0x374], eax
mov edx, dword [ebp - 0x374]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x20]
mov byte [eax], 0
push 0
lea ecx, [ebp - 0x34c]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x348]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0x348]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x34c]
cmp eax, dword [ebp - 0x20]
je 0x454ed9
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x378], ecx
mov edx, dword [ebp - 0x378]
push edx
call fcn.00493b0b
add esp, 4
mov dword [ebp - 0x14], 0
jmp 0x454ee0
cmp dword [ebp - 0x14], 0
jne 0x454eed
xor eax, eax
jmp 0x455301
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], 1
cmp dword [ebp + 0xc], 0
je 0x454f1d
push str.COLOR
mov eax, dword [ebp + 0xc]
push eax
call fcn.0049566d
add esp, 8
test eax, eax
je 0x454f63
push 4
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.0043abe0
add esp, 0x18
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x37c], eax
mov ecx, dword [ebp - 0x37c]
push ecx
call fcn.00493b0b
add esp, 4
cmp dword [ebp - 0x2c], 0
jne 0x454f63
xor eax, eax
jmp 0x455301
push 0x2c
push 0
lea edx, [ebp - 0x5c]
push edx
call fcn.00495570
add esp, 0xc
mov dword [ebp - 0x5c], 0x28
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x18]
neg ecx
mov dword [ebp - 0x54], ecx
mov edx, 1
mov word [ebp - 0x50], dx
mov eax, 0x20
mov word [ebp - 0x4e], ax
mov dword [ebp - 0x4c], 0
mov ecx, dword [ebp - 0x1c]
imul ecx, dword [ebp - 0x18]
shl ecx, 2
mov dword [ebp - 0x48], ecx
mov byte [ebp - 0x21], 0
mov dword [ebp - 0x10], 0
push 0
push 0
lea edx, [ebp - 0x10]
push edx
push 0
lea eax, [ebp - 0x5c]
push eax
push 0
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0
jne 0x454fdf
xor eax, eax
jmp 0x455301
mov byte [ebp - 0x30], 0
xor ecx, ecx
mov word [ebp - 0x2f], cx
mov byte [ebp - 0x2d], cl
cmp dword [ebp + 0xc], 0
je 0x455093
push str.COLOR
mov edx, dword [ebp + 0xc]
push edx
call fcn.0049566d
add esp, 8
test eax, eax
jne 0x455093
mov dword [ebp - 0x350], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x354], eax
mov ecx, dword [ebp - 0x354]
movzx edx, word [ecx]
cmp edx, 0x23
jne 0x455043
mov eax, dword [ebp - 0x354]
push eax
call dword [sym.imp.USER32.dll_CharNextW]
mov dword [ebp - 0x354], eax
push 0x10
lea ecx, [ebp - 0x350]
push ecx
mov edx, dword [ebp - 0x354]
push edx
call fcn.00495cb8
add esp, 0xc
mov dword [ebp - 0x358], eax
lea eax, [ebp - 0x358]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
mov dl, byte [ecx + 3]
mov byte [ebp - 0x2d], dl
mov eax, dword [ebp - 0x2c]
mov cl, byte [eax]
mov byte [ebp - 0x2e], cl
mov edx, dword [ebp - 0x2c]
mov al, byte [edx + 1]
mov byte [ebp - 0x2f], al
mov ecx, dword [ebp - 0x2c]
mov dl, byte [ecx + 2]
mov byte [ebp - 0x30], dl
lea eax, [ebp - 0x30]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x35c], 0
jmp 0x4550ae
mov ecx, dword [ebp - 0x35c]
add ecx, 1
mov dword [ebp - 0x35c], ecx
mov edx, dword [ebp - 0x1c]
imul edx, dword [ebp - 0x18]
cmp dword [ebp - 0x35c], edx
jge 0x455235
mov eax, dword [ebp - 0x35c]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x35c]
mov esi, dword [ebp - 0x2c]
mov dl, byte [esi + edx*4 + 3]
mov byte [ecx + eax*4 + 3], dl
mov eax, dword [ebp - 0x35c]
mov ecx, dword [ebp - 0x10]
movzx edx, byte [ecx + eax*4 + 3]
cmp edx, 0xff
jge 0x455198
mov eax, dword [ebp - 0x35c]
mov ecx, dword [ebp - 0x2c]
movzx eax, byte [ecx + eax*4 + 2]
mov edx, dword [ebp - 0x35c]
mov ecx, dword [ebp - 0x2c]
movzx edx, byte [ecx + edx*4 + 3]
imul eax, edx
xor edx, edx
mov ecx, 0xff
div ecx
mov edx, dword [ebp - 0x35c]
mov ecx, dword [ebp - 0x10]
mov byte [ecx + edx*4], al
mov edx, dword [ebp - 0x35c]
mov eax, dword [ebp - 0x2c]
movzx eax, byte [eax + edx*4 + 1]
mov ecx, dword [ebp - 0x35c]
mov edx, dword [ebp - 0x2c]
movzx ecx, byte [edx + ecx*4 + 3]
imul eax, ecx
xor edx, edx
mov ecx, 0xff
div ecx
mov edx, dword [ebp - 0x35c]
mov ecx, dword [ebp - 0x10]
mov byte [ecx + edx*4 + 1], al
mov edx, dword [ebp - 0x35c]
mov eax, dword [ebp - 0x2c]
movzx eax, byte [eax + edx*4]
mov ecx, dword [ebp - 0x35c]
mov edx, dword [ebp - 0x2c]
movzx ecx, byte [edx + ecx*4 + 3]
imul eax, ecx
xor edx, edx
mov ecx, 0xff
div ecx
mov edx, dword [ebp - 0x35c]
mov ecx, dword [ebp - 0x10]
mov byte [ecx + edx*4 + 2], al
mov byte [ebp - 0x21], 1
jmp 0x4551e4
mov edx, dword [ebp - 0x35c]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x35c]
mov esi, dword [ebp - 0x2c]
mov cl, byte [esi + ecx*4 + 2]
mov byte [eax + edx*4], cl
mov edx, dword [ebp - 0x35c]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x35c]
mov esi, dword [ebp - 0x2c]
mov cl, byte [esi + ecx*4 + 1]
mov byte [eax + edx*4 + 1], cl
mov edx, dword [ebp - 0x35c]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x35c]
mov esi, dword [ebp - 0x2c]
mov cl, byte [esi + ecx*4]
mov byte [eax + edx*4 + 2], cl
mov edx, dword [ebp - 0x35c]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + edx*4]
cmp ecx, dword [ebp + 0x10]
jne 0x455230
mov edx, dword [ebp - 0x35c]
mov eax, dword [ebp - 0x10]
mov byte [eax + edx*4], 0
mov ecx, dword [ebp - 0x35c]
mov edx, dword [ebp - 0x10]
mov byte [edx + ecx*4 + 1], 0
mov eax, dword [ebp - 0x35c]
mov ecx, dword [ebp - 0x10]
mov byte [ecx + eax*4 + 2], 0
mov edx, dword [ebp - 0x35c]
mov eax, dword [ebp - 0x10]
mov byte [eax + edx*4 + 3], 0
mov byte [ebp - 0x21], 1
jmp 0x45509f
cmp dword [ebp + 0xc], 0
je 0x455250
push str.COLOR
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0049566d
add esp, 8
test eax, eax
je 0x45525c
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0043a5b0
add esp, 4
push 0xa0
call fcn.004924cc
add esp, 4
mov dword [ebp - 0x384], eax
mov dword [ebp - 4], 1
cmp dword [ebp - 0x384], 0
je 0x45529b
mov ecx, dword [ebp - 0x384]
add ecx, 0x18
call fcn.00424b40
mov eax, dword [ebp - 0x384]
mov dword [ebp - 0x388], eax
jmp 0x4552a5
mov dword [ebp - 0x388], 0
mov ecx, dword [ebp - 0x388]
mov dword [ebp - 0x380], ecx
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x380]
mov dword [ebp - 0x64], edx
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x60]
mov dword [eax], ecx
mov edx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x10]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 0x64]
mov edx, dword [ebp - 0x1c]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x10], ecx
mov edx, dword [ebp - 0x64]
mov al, byte [ebp - 0x21]
mov byte [edx + 0x14], al
mov ecx, dword [ebp - 0x64]
mov byte [ecx + 0x15], 0
mov edx, dword [ebp - 0x64]
mov dword [edx + 8], 0
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x68]
xor ecx, ebp
call fcn.004922e7
mov esp, ebp
pop ebp
ret