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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c5b99
mov eax, dword fs:[0]
push eax
sub esp, 0x37c
mov eax, dword [0x4ebfe0]
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 0x458109
call fcn.0041cb40
push eax
lea ecx, [ebp - 0xf4]
call fcn.00427f20
mov dword [ebp - 4], 0
call fcn.0041cb50
mov ecx, eax
call fcn.00428180
movzx eax, al
test eax, eax
je 0x457f5a
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0xf4]
call fcn.004282a0
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp - 0xf4]
call fcn.004281e0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xf8], eax
cmp dword [ebp - 0xf8], 0xffffffff
jne 0x457e7c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf4]
call fcn.00427f60
jmp 0x4581ef
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 0x457eb8
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.00427f60
jmp 0x4581ef
mov dword [ebp - 0xfc], 0
mov ecx, dword [ebp - 0x20]
add ecx, 1
push ecx
call fcn.0041bd2c
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 0x457f55
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x364], ecx
mov edx, dword [ebp - 0x364]
push edx
call fcn.004a69ed
add esp, 4
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf4]
call fcn.00427f60
jmp 0x4581ef
jmp 0x4580f2
call fcn.0041cb50
push eax
lea ecx, [ebp - 0xf4]
call fcn.00428270
mov dword [ebp - 0x104], 0
call fcn.0041cb60
movzx eax, al
test eax, eax
je 0x457f8e
call fcn.0041cb70
mov dword [ebp - 0x104], eax
jmp 0x457fae
call fcn.0041cb80
push eax
lea ecx, [ebp - 0xf4]
call fcn.004281e0
push eax
call fcn.0041a6f0
add esp, 8
mov dword [ebp - 0x104], eax
cmp dword [ebp - 0x104], 0
jne 0x457fce
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf4]
call fcn.00427f60
jmp 0x4581ef
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.0041a7c0
add esp, 0x14
test eax, eax
je 0x45800c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf4]
call fcn.00427f60
jmp 0x4581ef
mov edx, dword [ebp - 0x110]
mov dword [ebp - 0x20], edx
cmp dword [ebp - 0x20], 0
jne 0x458032
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf4]
call fcn.00427f60
jmp 0x4581ef
mov eax, dword [ebp - 0x20]
push eax
call fcn.0041bd2c
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.0041a8c0
add esp, 0x10
mov dword [ebp - 0x100], eax
cmp dword [ebp - 0x100], 0
je 0x4580d7
cmp dword [ebp - 0x100], 0x600
je 0x4580d7
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x36c], eax
mov ecx, dword [ebp - 0x36c]
push ecx
call fcn.004a69ed
add esp, 4
mov dword [ebp - 0x14], 0
call fcn.0041cb60
movzx edx, al
test edx, edx
jne 0x4580c0
mov eax, dword [ebp - 0x104]
push eax
call fcn.0041a940
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf4]
call fcn.00427f60
jmp 0x4581ef
call fcn.0041cb60
movzx ecx, al
test ecx, ecx
jne 0x4580f2
mov edx, dword [ebp - 0x104]
push edx
call fcn.0041a940
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf4]
call fcn.00427f60
jmp 0x4581e7
push str.COLOR
mov eax, dword [ebp + 0xc]
push eax
call fcn.004a856e
add esp, 8
test eax, eax
jne 0x45812a
mov dword [ebp - 0x14], 1
jmp 0x4581e7
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0041cb20
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x344], eax
cmp dword [ebp - 0x344], 0
jne 0x458152
jmp 0x4581ef
mov eax, dword [ebp - 0x344]
push eax
call fcn.0041cb20
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x340], eax
cmp dword [ebp - 0x340], 0
jne 0x458183
mov ecx, dword [ebp - 0x344]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x4581ef
mov edx, dword [ebp - 0x344]
push edx
call fcn.0041cb20
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4581a1
jmp 0x4581ef
mov eax, dword [ebp - 0x20]
push eax
call fcn.0041bd2c
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.004a85b0
add esp, 0xc
mov edx, dword [ebp - 0x344]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
jne 0x457dea
cmp dword [ebp - 0x14], 0
jne 0x4582e0
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 0x458229
jmp 0x4582e0
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 0x458253
mov eax, dword [ebp - 0x348]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4582e0
mov dword [ebp - 0x34c], 0
mov ecx, dword [ebp - 0x20]
add ecx, 1
push ecx
call fcn.0041bd2c
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 0x4582d9
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x378], ecx
mov edx, dword [ebp - 0x378]
push edx
call fcn.004a69ed
add esp, 4
mov dword [ebp - 0x14], 0
jmp 0x4582e0
cmp dword [ebp - 0x14], 0
jne 0x4582ed
xor eax, eax
jmp 0x458701
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], 1
cmp dword [ebp + 0xc], 0
je 0x45831d
push str.COLOR
mov eax, dword [ebp + 0xc]
push eax
call fcn.004a856e
add esp, 8
test eax, eax
je 0x458363
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.0043dff0
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.004a69ed
add esp, 4
cmp dword [ebp - 0x2c], 0
jne 0x458363
xor eax, eax
jmp 0x458701
push 0x2c
push 0
lea edx, [ebp - 0x5c]
push edx
call fcn.004a8470
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 0x4583df
xor eax, eax
jmp 0x458701
mov byte [ebp - 0x30], 0
xor ecx, ecx
mov word [ebp - 0x2f], cx
mov byte [ebp - 0x2d], cl
cmp dword [ebp + 0xc], 0
je 0x458493
push str.COLOR
mov edx, dword [ebp + 0xc]
push edx
call fcn.004a856e
add esp, 8
test eax, eax
jne 0x458493
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 0x458443
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.004a8bb8
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 0x4584ae
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 0x458635
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 0x458598
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 0x4585e4
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 0x458630
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 0x45849f
cmp dword [ebp + 0xc], 0
je 0x458650
push str.COLOR
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004a856e
add esp, 8
test eax, eax
je 0x45865c
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004958f0
add esp, 4
push 0xa0
call fcn.004a508b
add esp, 4
mov dword [ebp - 0x384], eax
mov dword [ebp - 4], 1
cmp dword [ebp - 0x384], 0
je 0x45869b
mov ecx, dword [ebp - 0x384]
add ecx, 0x18
call fcn.00427eb0
mov eax, dword [ebp - 0x384]
mov dword [ebp - 0x388], eax
jmp 0x4586a5
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.004a4ea6
mov esp, ebp
pop ebp
ret