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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4af089
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 0x454d29
call fcn.004197d0
push eax
lea ecx, [ebp - 0xf4]
call fcn.00424bd0
mov dword [ebp - 4], 0
call fcn.004197e0
mov ecx, eax
call fcn.00424e30
movzx eax, al
test eax, eax
je 0x454b7a
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0xf4]
call fcn.00424f50
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp - 0xf4]
call fcn.00424e90
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xf8], eax
cmp dword [ebp - 0xf8], 0xffffffff
jne 0x454a9c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf4]
call fcn.00424c10
jmp 0x454e0f
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 0x454ad8
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.00424c10
jmp 0x454e0f
mov dword [ebp - 0xfc], 0
mov ecx, dword [ebp - 0x20]
add ecx, 1
push ecx
call fcn.00418a1c
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 0x454b75
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x364], ecx
mov edx, dword [ebp - 0x364]
push edx
call fcn.00493b5b
add esp, 4
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf4]
call fcn.00424c10
jmp 0x454e0f
jmp 0x454d12
call fcn.004197e0
push eax
lea ecx, [ebp - 0xf4]
call fcn.00424f20
mov dword [ebp - 0x104], 0
call fcn.004197f0
movzx eax, al
test eax, eax
je 0x454bae
call fcn.00419800
mov dword [ebp - 0x104], eax
jmp 0x454bce
call fcn.00419810
push eax
lea ecx, [ebp - 0xf4]
call fcn.00424e90
push eax
call fcn.004173b0
add esp, 8
mov dword [ebp - 0x104], eax
cmp dword [ebp - 0x104], 0
jne 0x454bee
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf4]
call fcn.00424c10
jmp 0x454e0f
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.00417480
add esp, 0x14
test eax, eax
je 0x454c2c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf4]
call fcn.00424c10
jmp 0x454e0f
mov edx, dword [ebp - 0x110]
mov dword [ebp - 0x20], edx
cmp dword [ebp - 0x20], 0
jne 0x454c52
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf4]
call fcn.00424c10
jmp 0x454e0f
mov eax, dword [ebp - 0x20]
push eax
call fcn.00418a1c
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.00417580
add esp, 0x10
mov dword [ebp - 0x100], eax
cmp dword [ebp - 0x100], 0
je 0x454cf7
cmp dword [ebp - 0x100], 0x600
je 0x454cf7
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x36c], eax
mov ecx, dword [ebp - 0x36c]
push ecx
call fcn.00493b5b
add esp, 4
mov dword [ebp - 0x14], 0
call fcn.004197f0
movzx edx, al
test edx, edx
jne 0x454ce0
mov eax, dword [ebp - 0x104]
push eax
call fcn.00417600
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf4]
call fcn.00424c10
jmp 0x454e0f
call fcn.004197f0
movzx ecx, al
test ecx, ecx
jne 0x454d12
mov edx, dword [ebp - 0x104]
push edx
call fcn.00417600
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf4]
call fcn.00424c10
jmp 0x454e07
push str.COLOR
mov eax, dword [ebp + 0xc]
push eax
call fcn.004956bd
add esp, 8
test eax, eax
jne 0x454d4a
mov dword [ebp - 0x14], 1
jmp 0x454e07
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004197b0
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x344], eax
cmp dword [ebp - 0x344], 0
jne 0x454d72
jmp 0x454e0f
mov eax, dword [ebp - 0x344]
push eax
call fcn.004197b0
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x340], eax
cmp dword [ebp - 0x340], 0
jne 0x454da3
mov ecx, dword [ebp - 0x344]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x454e0f
mov edx, dword [ebp - 0x344]
push edx
call fcn.004197b0
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x454dc1
jmp 0x454e0f
mov eax, dword [ebp - 0x20]
push eax
call fcn.00418a1c
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.00495700
add esp, 0xc
mov edx, dword [ebp - 0x344]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
jne 0x454a0a
cmp dword [ebp - 0x14], 0
jne 0x454f00
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 0x454e49
jmp 0x454f00
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 0x454e73
mov eax, dword [ebp - 0x348]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x454f00
mov dword [ebp - 0x34c], 0
mov ecx, dword [ebp - 0x20]
add ecx, 1
push ecx
call fcn.00418a1c
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 0x454ef9
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x378], ecx
mov edx, dword [ebp - 0x378]
push edx
call fcn.00493b5b
add esp, 4
mov dword [ebp - 0x14], 0
jmp 0x454f00
cmp dword [ebp - 0x14], 0
jne 0x454f0d
xor eax, eax
jmp 0x455321
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], 1
cmp dword [ebp + 0xc], 0
je 0x454f3d
push str.COLOR
mov eax, dword [ebp + 0xc]
push eax
call fcn.004956bd
add esp, 8
test eax, eax
je 0x454f83
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.0043ac00
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.00493b5b
add esp, 4
cmp dword [ebp - 0x2c], 0
jne 0x454f83
xor eax, eax
jmp 0x455321
push 0x2c
push 0
lea edx, [ebp - 0x5c]
push edx
call fcn.004955c0
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 0x454fff
xor eax, eax
jmp 0x455321
mov byte [ebp - 0x30], 0
xor ecx, ecx
mov word [ebp - 0x2f], cx
mov byte [ebp - 0x2d], cl
cmp dword [ebp + 0xc], 0
je 0x4550b3
push str.COLOR
mov edx, dword [ebp + 0xc]
push edx
call fcn.004956bd
add esp, 8
test eax, eax
jne 0x4550b3
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 0x455063
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.00495d08
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 0x4550ce
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 0x455255
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 0x4551b8
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 0x455204
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 0x455250
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 0x4550bf
cmp dword [ebp + 0xc], 0
je 0x455270
push str.COLOR
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004956bd
add esp, 8
test eax, eax
je 0x45527c
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0043a5d0
add esp, 4
push 0xa0
call fcn.0049251c
add esp, 4
mov dword [ebp - 0x384], eax
mov dword [ebp - 4], 1
cmp dword [ebp - 0x384], 0
je 0x4552bb
mov ecx, dword [ebp - 0x384]
add ecx, 0x18
call fcn.00424b60
mov eax, dword [ebp - 0x384]
mov dword [ebp - 0x388], eax
jmp 0x4552c5
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.00492337
mov esp, ebp
pop ebp
ret