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

Disassembly:
push 0x31c
mov eax, 0x48c1ad
call fcn.00470d2a
mov esi, ecx
xor ebx, ebx
xor edi, edi
mov dword [ebp - 0x2f0], esi
cmp esi, ebx
jne 0x44e3f1
push 0x4ab100
lea eax, [ebp - 0x9c]
call fcn.00435ff5
mov dword [ebp - 4], ebx
mov eax, dword [0x4ab188]
cmp word [eax], bx
jne 0x44e31f
push dword [ebp + 8]
lea eax, [ebp - 0x9c]
push eax
call fcn.00436271
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp - 0x9c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x44e2c3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
call fcn.00436015
jmp 0x44e50e
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, ebx
jne 0x44e2da
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x44e2af
push edi
mov dword [ebp - 0x2e0], ebx
call fcn.0047c12c
pop ecx
push ebx
lea ecx, [ebp - 0x2e0]
push ecx
push edi
push eax
push esi
mov dword [ebp - 0x2d0], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2e0], edi
je 0x44e3dd
push dword [ebp - 0x2d0]
call fcn.0047cf62
pop ecx
jmp 0x44e2af
push eax
lea eax, [ebp - 0x9c]
call fcn.00436026
cmp byte [0x4aa6c7], bl
je 0x44e33b
mov esi, dword [0x4ae320]
jmp 0x44e34e
push 2
push ebx
push dword [ebp - 0x9c]
call fcn.0044d584
add esp, 0xc
mov esi, eax
cmp esi, ebx
je 0x44e2af
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x2cc]
push eax
push esi
lea edx, [ebp - 0x2dc]
call fcn.0044d5e2
pop ecx
pop ecx
test eax, eax
jne 0x44e2af
mov edi, dword [ebp - 0xa0]
cmp edi, ebx
je 0x44e2af
push edi
call fcn.0047c12c
pop ecx
push edi
push eax
push dword [ebp - 0x2dc]
mov dword [ebp - 0x2d0], eax
mov eax, esi
call fcn.0044d6b4
add esp, 0xc
cmp eax, ebx
je 0x44e3d0
cmp eax, 0x600
je 0x44e3d0
push dword [ebp - 0x2d0]
call fcn.0047cf62
pop ecx
cmp byte [0x4aa6c7], bl
jne 0x44e2af
call fcn.0044d6e6
jmp 0x44e2af
cmp byte [0x4aa6c7], bl
jne 0x44e3dd
call fcn.0044d6e6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
call fcn.00436015
jmp 0x44e502
mov ecx, str.COLOR
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x44e41e
cmp dx, bx
je 0x44e41a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x44e41e
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x44e3f8
xor eax, eax
jmp 0x44e423
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x44e48a
mov dword [ebp - 0x2d0], 1
xor eax, eax
inc eax
mov dword [ebp - 0x2ec], eax
mov dword [ebp - 0x2e8], eax
mov eax, dword [ebp - 0x2f0]
mov dword [ebp - 0x2e4], ebx
cmp eax, ebx
je 0x44e5a6
mov ecx, str.COLOR
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x44e59d
cmp dx, bx
je 0x44e483
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x44e59d
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x44e459
xor eax, eax
jmp 0x44e5a2
push esi
push dword [ebp + 8]
call fcn.0043723a
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
je 0x44e50e
push esi
call fcn.0043723a
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x2dc], eax
push esi
cmp eax, ebx
jne 0x44e4c0
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x44e50e
call fcn.0043723a
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
cmp edi, ebx
je 0x44e50e
push edi
call fcn.0047c12c
pop ecx
push edi
push dword [ebp - 0x2dc]
mov dword [ebp - 0x2d0], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push dword [ebp - 0x2d0]
call fcn.00472800
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [ebp - 0x2d0], ebx
jne 0x44e431
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x44e596
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, ebx
jne 0x44e545
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x44e596
push edi
mov dword [ebp - 0x2dc], ebx
call fcn.0047c12c
pop ecx
push ebx
lea ecx, [ebp - 0x2dc]
push ecx
push edi
push eax
push esi
mov dword [ebp - 0x2d0], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2dc], edi
je 0x44e58a
push dword [ebp - 0x2d0]
call fcn.0047cf62
pop ecx
mov dword [ebp - 0x2d0], ebx
cmp dword [ebp - 0x2d0], ebx
jne 0x44e431
xor eax, eax
jmp 0x44e8b5
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x44e5df
mov ecx, dword [ebp - 0x2d0]
lea eax, [ebp - 0x2f4]
push eax
lea esi, [ebp - 0x2e8]
lea edx, [ebp - 0x2ec]
call fcn.00466bd7
pop ecx
push dword [ebp - 0x2d0]
mov dword [ebp - 0x2e4], eax
call fcn.0047cf62
pop ecx
cmp dword [ebp - 0x2e4], ebx
je 0x44e596
push 0x2c
lea eax, [ebp - 0x328]
push ebx
push eax
call fcn.004722d0
mov eax, dword [ebp - 0x2ec]
mov esi, dword [ebp - 0x2e8]
mov ecx, esi
imul esi, eax
add esp, 0xc
neg ecx
mov dword [ebp - 0x320], ecx
push 0x20
xor ecx, ecx
mov dword [ebp - 0x324], eax
inc ecx
mov word [ebp - 0x31c], cx
pop ecx
push ebx
mov eax, esi
shl eax, 2
push ebx
mov dword [ebp - 0x314], eax
lea eax, [ebp - 0x2d8]
push eax
push ebx
lea eax, [ebp - 0x328]
push eax
push ebx
mov dword [ebp - 0x328], 0x28
mov word [ebp - 0x31a], cx
mov dword [ebp - 0x318], ebx
mov dword [ebp - 0x2f8], esi
mov byte [ebp - 0x2d1], bl
mov dword [ebp - 0x2d8], ebx
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov dword [ebp - 0x2f4], eax
cmp eax, ebx
je 0x44e596
xor eax, eax
mov byte [ebp - 0x2d0], bl
lea edi, [ebp - 0x2cf]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp - 0x2f0]
cmp eax, ebx
je 0x44e728
mov ecx, str.COLOR
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x44e6c1
cmp dx, bx
je 0x44e6bd
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x44e6c1
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x44e69b
xor eax, eax
jmp 0x44e6c6
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x44e728
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2fc], ebx
cmp word [eax], 0x23
jne 0x44e6e0
push eax
call dword [sym.imp.USER32.dll_CharNextW]
push 0x10
lea ecx, [ebp - 0x2fc]
push ecx
push eax
call fcn.00472ec4
mov dword [ebp - 0x2dc], eax
mov cl, byte [ebp - 0x2d9]
mov byte [ebp - 0x2ce], al
mov al, byte [ebp - 0x2da]
mov byte [ebp - 0x2cf], ah
mov byte [ebp - 0x2d0], al
lea eax, [ebp - 0x2d0]
add esp, 0xc
mov byte [ebp - 0x2cd], cl
mov dword [ebp - 0x2e4], eax
cmp esi, ebx
mov dword [ebp - 0x2e0], ebx
jle 0x44e81b
mov esi, dword [ebp - 0x2e4]
add esi, 3
mov ecx, dword [ebp - 0x2e0]
mov al, byte [esi]
mov edx, dword [ebp - 0x2d8]
shl ecx, 2
mov byte [ecx + edx + 3], al
mov eax, dword [ebp - 0x2d8]
lea edi, [ecx + eax]
cmp byte [edi + 3], 0xff
jae 0x44e7ab
movzx edx, byte [esi]
movzx eax, byte [esi - 1]
imul eax, edx
xor edx, edx
mov ebx, 0xff
div ebx
mov byte [ebp - 0x2d1], 1
mov byte [edi], al
movzx edx, byte [esi]
movzx eax, byte [esi - 2]
imul eax, edx
xor edx, edx
mov edi, ebx
div edi
mov edx, dword [ebp - 0x2d8]
mov byte [ecx + edx + 1], al
movzx edx, byte [esi]
movzx eax, byte [esi - 3]
imul eax, edx
xor edx, edx
div edi
xor ebx, ebx
jmp 0x44e7c0
mov al, byte [esi - 1]
mov byte [edi], al
mov al, byte [esi - 2]
mov edx, dword [ebp - 0x2d8]
mov byte [ecx + edx + 1], al
mov al, byte [esi - 3]
mov edx, dword [ebp - 0x2d8]
mov byte [ecx + edx + 2], al
mov eax, dword [ebp - 0x2d8]
add eax, ecx
mov edx, dword [eax]
cmp edx, dword [ebp + 0xc]
jne 0x44e800
mov byte [eax], bl
mov eax, dword [ebp - 0x2d8]
mov byte [ecx + eax + 1], bl
mov eax, dword [ebp - 0x2d8]
mov byte [ecx + eax + 2], bl
mov eax, dword [ebp - 0x2d8]
mov byte [ecx + eax + 3], bl
mov byte [ebp - 0x2d1], 1
inc dword [ebp - 0x2e0]
mov eax, dword [ebp - 0x2e0]
add esi, 4
cmp eax, dword [ebp - 0x2f8]
jl 0x44e73f
mov eax, dword [ebp - 0x2f0]
cmp eax, ebx
je 0x44e859
mov ecx, str.COLOR
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x44e850
cmp dx, bx
je 0x44e84c
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x44e850
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x44e82a
xor eax, eax
jmp 0x44e855
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x44e865
push dword [ebp - 0x2e4]
call fcn.00470226
pop ecx
push 0xa0
call fcn.004701a0
pop ecx
cmp eax, ebx
je 0x44e881
lea ecx, [eax + 0x1c]
xor edx, edx
mov dword [eax + 0x18], ecx
mov word [ecx], dx
jmp 0x44e883
xor eax, eax
mov ecx, dword [ebp - 0x2f4]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x2d8]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x2ec]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0x2e8]
mov dword [eax + 0x10], ecx
mov cl, byte [ebp - 0x2d1]
mov byte [eax + 0x14], cl
mov byte [eax + 0x15], bl
mov dword [eax + 8], ebx
call fcn.00470dad
ret