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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x496a79
mov eax, dword fs:[0]
push eax
sub esp, 0x37c
mov eax, dword [0x4b3da0]
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 0x437160
call fcn.00419020
push eax
lea ecx, [ebp - 0xf4]
call fcn.00422f00
mov dword [ebp - 4], 0
call fcn.00419030
mov ecx, eax
call fcn.00423160
movzx eax, al
test eax, eax
je 0x436fb1
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0xf4]
call fcn.00423270
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp - 0xf4]
call fcn.00422e30
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xf8], eax
cmp dword [ebp - 0xf8], 0xffffffff
jne 0x436eec
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf4]
call fcn.00422f40
jmp 0x437246
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 0x436f1b
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf4]
call fcn.00422f40
jmp 0x437246
mov dword [ebp - 0xfc], 0
mov eax, dword [ebp - 0x20]
push eax
call fcn.004182b2
add esp, 4
mov dword [ebp - 0x360], eax
mov ecx, dword [ebp - 0x360]
mov dword [ebp - 0x14], ecx
push 0
lea edx, [ebp - 0xfc]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0xf8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0xf8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xfc]
cmp ecx, dword [ebp - 0x20]
je 0x436fac
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x364], edx
mov eax, dword [ebp - 0x364]
push eax
call fcn.0047f38b
add esp, 4
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf4]
call fcn.00422f40
jmp 0x437246
jmp 0x437149
call fcn.00419030
push eax
lea ecx, [ebp - 0xf4]
call fcn.00423240
mov dword [ebp - 0x104], 0
call fcn.00419040
movzx ecx, al
test ecx, ecx
je 0x436fe5
call fcn.00419050
mov dword [ebp - 0x104], eax
jmp 0x437005
call fcn.00419060
push eax
lea ecx, [ebp - 0xf4]
call fcn.00422e30
push eax
call fcn.00416bd0
add esp, 8
mov dword [ebp - 0x104], eax
cmp dword [ebp - 0x104], 0
jne 0x437025
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf4]
call fcn.00422f40
jmp 0x437246
lea edx, [ebp - 0x33c]
push edx
lea eax, [ebp - 0x108]
push eax
push 1
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x104]
push edx
call fcn.00416ca0
add esp, 0x14
test eax, eax
je 0x437063
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf4]
call fcn.00422f40
jmp 0x437246
mov eax, dword [ebp - 0x110]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x437089
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf4]
call fcn.00422f40
jmp 0x437246
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.004182b2
add esp, 4
mov dword [ebp - 0x368], eax
mov edx, dword [ebp - 0x368]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x108]
push edx
mov eax, dword [ebp - 0x104]
push eax
call fcn.00416da0
add esp, 0x10
mov dword [ebp - 0x100], eax
cmp dword [ebp - 0x100], 0
je 0x43712e
cmp dword [ebp - 0x100], 0x600
je 0x43712e
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x36c], ecx
mov edx, dword [ebp - 0x36c]
push edx
call fcn.0047f38b
add esp, 4
mov dword [ebp - 0x14], 0
call fcn.00419040
movzx eax, al
test eax, eax
jne 0x437117
mov ecx, dword [ebp - 0x104]
push ecx
call fcn.00416e20
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf4]
call fcn.00422f40
jmp 0x437246
call fcn.00419040
movzx edx, al
test edx, edx
jne 0x437149
mov eax, dword [ebp - 0x104]
push eax
call fcn.00416e20
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf4]
call fcn.00422f40
jmp 0x43723e
push str.COLOR
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004810c4
add esp, 8
test eax, eax
jne 0x437181
mov dword [ebp - 0x14], 1
jmp 0x43723e
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00419000
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x344], eax
cmp dword [ebp - 0x344], 0
jne 0x4371a9
jmp 0x437246
mov ecx, dword [ebp - 0x344]
push ecx
call fcn.00419000
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x340], eax
cmp dword [ebp - 0x340], 0
jne 0x4371da
mov edx, dword [ebp - 0x344]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x437246
mov eax, dword [ebp - 0x344]
push eax
call fcn.00419000
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4371f8
jmp 0x437246
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.004182b2
add esp, 4
mov dword [ebp - 0x370], eax
mov edx, dword [ebp - 0x370]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x340]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
mov edx, dword [ebp - 0x14]
push edx
call fcn.00480a90
add esp, 0xc
mov eax, dword [ebp - 0x344]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor ecx, ecx
jne 0x436e5a
cmp dword [ebp - 0x14], 0
jne 0x43731e
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x348], eax
cmp dword [ebp - 0x348], 0xffffffff
jne 0x437280
jmp 0x43731e
push 0
mov eax, dword [ebp - 0x348]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x43729d
jmp 0x43731e
mov dword [ebp - 0x34c], 0
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.004182b2
add esp, 4
mov dword [ebp - 0x374], eax
mov edx, dword [ebp - 0x374]
mov dword [ebp - 0x14], edx
push 0
lea eax, [ebp - 0x34c]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x348]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x348]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x34c]
cmp edx, dword [ebp - 0x20]
je 0x437317
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x378], eax
mov ecx, dword [ebp - 0x378]
push ecx
call fcn.0047f38b
add esp, 4
mov dword [ebp - 0x14], 0
jmp 0x43731e
cmp dword [ebp - 0x14], 0
jne 0x43732b
xor eax, eax
jmp 0x43773f
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], 1
cmp dword [ebp + 0xc], 0
je 0x43735b
push str.COLOR
mov edx, dword [ebp + 0xc]
push edx
call fcn.004810c4
add esp, 8
test eax, eax
je 0x4373a1
push 4
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0046b070
add esp, 0x18
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x37c], edx
mov eax, dword [ebp - 0x37c]
push eax
call fcn.0047f38b
add esp, 4
cmp dword [ebp - 0x2c], 0
jne 0x4373a1
xor eax, eax
jmp 0x43773f
push 0x2c
push 0
lea ecx, [ebp - 0x5c]
push ecx
call fcn.00480a10
add esp, 0xc
mov dword [ebp - 0x5c], 0x28
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x18]
neg eax
mov dword [ebp - 0x54], eax
mov ecx, 1
mov word [ebp - 0x50], cx
mov edx, 0x20
mov word [ebp - 0x4e], dx
mov dword [ebp - 0x4c], 0
mov eax, dword [ebp - 0x1c]
imul eax, dword [ebp - 0x18]
shl eax, 2
mov dword [ebp - 0x48], eax
mov byte [ebp - 0x21], 0
mov dword [ebp - 0x10], 0
push 0
push 0
lea ecx, [ebp - 0x10]
push ecx
push 0
lea edx, [ebp - 0x5c]
push edx
push 0
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0
jne 0x43741d
xor eax, eax
jmp 0x43773f
mov byte [ebp - 0x30], 0
xor eax, eax
mov word [ebp - 0x2f], ax
mov byte [ebp - 0x2d], al
cmp dword [ebp + 0xc], 0
je 0x4374d1
push str.COLOR
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004810c4
add esp, 8
test eax, eax
jne 0x4374d1
mov dword [ebp - 0x350], 0
mov edx, dword [ebp + 8]
mov dword [ebp - 0x354], edx
mov eax, dword [ebp - 0x354]
movzx ecx, word [eax]
cmp ecx, 0x23
jne 0x437481
mov edx, dword [ebp - 0x354]
push edx
call dword [sym.imp.USER32.dll_CharNextW]
mov dword [ebp - 0x354], eax
push 0x10
lea eax, [ebp - 0x350]
push eax
mov ecx, dword [ebp - 0x354]
push ecx
call fcn.00481098
add esp, 0xc
mov dword [ebp - 0x358], eax
lea edx, [ebp - 0x358]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
mov cl, byte [eax + 3]
mov byte [ebp - 0x2d], cl
mov edx, dword [ebp - 0x2c]
mov al, byte [edx]
mov byte [ebp - 0x2e], al
mov ecx, dword [ebp - 0x2c]
mov dl, byte [ecx + 1]
mov byte [ebp - 0x2f], dl
mov eax, dword [ebp - 0x2c]
mov cl, byte [eax + 2]
mov byte [ebp - 0x30], cl
lea edx, [ebp - 0x30]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x35c], 0
jmp 0x4374ec
mov eax, dword [ebp - 0x35c]
add eax, 1
mov dword [ebp - 0x35c], eax
mov ecx, dword [ebp - 0x1c]
imul ecx, dword [ebp - 0x18]
cmp dword [ebp - 0x35c], ecx
jge 0x437673
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 + 3]
mov byte [eax + edx*4 + 3], cl
mov edx, dword [ebp - 0x35c]
mov eax, dword [ebp - 0x10]
movzx ecx, byte [eax + edx*4 + 3]
cmp ecx, 0xff
jge 0x4375d6
mov edx, dword [ebp - 0x35c]
mov eax, dword [ebp - 0x2c]
movzx eax, byte [eax + edx*4 + 2]
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], 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 0x437622
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 0x43766e
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 0x4374dd
cmp dword [ebp + 0xc], 0
je 0x43768e
push str.COLOR
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004810c4
add esp, 8
test eax, eax
je 0x43769a
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0046b050
add esp, 4
push 0xa0
call fcn.0047df56
add esp, 4
mov dword [ebp - 0x384], eax
mov dword [ebp - 4], 1
cmp dword [ebp - 0x384], 0
je 0x4376d9
mov ecx, dword [ebp - 0x384]
add ecx, 0x18
call fcn.00422e90
mov eax, dword [ebp - 0x384]
mov dword [ebp - 0x388], eax
jmp 0x4376e3
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.0047dd71
mov esp, ebp
pop ebp
ret