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

Disassembly:
push 0x1c8
mov eax, 0x4f238e
call fcn.004cb117
mov eax, dword [ebp + 0xc]
xor ebx, ebx
cmp eax, ebx
jne 0x47ae12
call fcn.00469e9b
push eax
lea ecx, [ebp - 0x80]
call fcn.0046ed35
mov dword [ebp - 4], ebx
call fcn.00469ea1
mov ecx, eax
call fcn.0046e7c2
test al, al
je 0x47ad29
push dword [ebp + 8]
lea ecx, [ebp - 0x80]
call fcn.0046e814
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
lea ecx, [ebp - 0x80]
call fcn.0046e73e
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x1bc], eax
cmp eax, 0xffffffff
jne 0x47acd5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.0046e724
jmp 0x47ae90
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebx
je 0x47acc4
push esi
mov dword [ebp - 0x1b4], ebx
call fcn.00468dae
pop ecx
push ebx
mov edi, eax
lea eax, [ebp - 0x1b4]
push eax
push esi
push edi
push dword [ebp - 0x1bc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x1bc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1b4], esi
je 0x47ae04
push edi
call fcn.004cacbf
pop ecx
jmp 0x47acc4
call fcn.00469ea1
push eax
lea ecx, [ebp - 0x80]
call fcn.0046e7f7
call fcn.00469ea7
test al, al
je 0x47ad47
call fcn.00469ead
jmp 0x47ad5b
push 2
push ebx
lea ecx, [ebp - 0x80]
call fcn.0046e73e
push eax
call fcn.004741b2
add esp, 0xc
mov dword [ebp - 0x1b4], eax
cmp eax, ebx
je 0x47acc4
lea eax, [ebp - 0x1ac]
push eax
lea eax, [ebp - 0x1c0]
push eax
push 1
push dword [ebp + 8]
push dword [ebp - 0x1b4]
call fcn.0047299a
add esp, 0x14
test eax, eax
jne 0x47acc4
mov esi, dword [ebp - 0x84]
cmp esi, ebx
je 0x47acc4
push esi
call fcn.00468dae
push 3
push esi
mov edi, eax
push edi
push dword [ebp - 0x1c0]
push dword [ebp - 0x1b4]
call fcn.00474210
add esp, 0x18
cmp eax, ebx
je 0x47adef
cmp eax, 0x600
je 0x47adef
push edi
call fcn.004cacbf
pop ecx
call fcn.00469ea7
test al, al
jne 0x47acc4
push dword [ebp - 0x1b4]
call fcn.00474248
jmp 0x47ad26
call fcn.00469ea7
test al, al
jne 0x47ae04
push dword [ebp - 0x1b4]
call fcn.00474248
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.0046e724
jmp 0x47ae8c
push eax
push dword [ebp + 8]
call fcn.00469e8c
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
mov dword [ebp - 0x1c8], esi
cmp esi, ebx
je 0x47ae90
push esi
call fcn.00469e8c
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x1c0], eax
push esi
cmp eax, ebx
jne 0x47ae4e
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x47ae90
call fcn.00469e8c
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
cmp esi, ebx
je 0x47ae90
push esi
call fcn.00468dae
pop ecx
push esi
push dword [ebp - 0x1c0]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push edi
call fcn.004ca090
add esp, 0xc
push dword [ebp - 0x1c8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp edi, ebx
jne 0x47af0f
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x1bc], eax
cmp eax, 0xffffffff
je 0x47af08
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebx
je 0x47af08
push esi
mov dword [ebp - 0x1c8], ebx
call fcn.00468dae
pop ecx
push ebx
mov edi, eax
lea eax, [ebp - 0x1c8]
push eax
push esi
push edi
push dword [ebp - 0x1bc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x1bc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1c8], esi
je 0x47af04
push edi
call fcn.004cacbf
pop ecx
xor edi, edi
cmp edi, ebx
jne 0x47af0f
xor eax, eax
jmp 0x47b11d
push 4
lea eax, [ebp - 0x1d4]
push eax
lea eax, [ebp - 0x1c4]
push eax
lea eax, [ebp - 0x1cc]
push eax
push esi
push edi
call fcn.00498ddf
push edi
mov dword [ebp - 0x1bc], eax
call fcn.004cacbf
add esp, 0x1c
cmp dword [ebp - 0x1bc], ebx
je 0x47af08
push 0x2c
lea eax, [ebp - 0x3c]
push ebx
push eax
call fcn.004ca820
mov eax, dword [ebp - 0x1cc]
mov ecx, dword [ebp - 0x1c4]
mov dword [ebp - 0x38], eax
imul eax, dword [ebp - 0x1c4]
add esp, 0xc
neg ecx
mov dword [ebp - 0x34], ecx
push 0x20
xor ecx, ecx
inc ecx
mov word [ebp - 0x30], cx
pop ecx
push ebx
shl eax, 2
push ebx
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x1b8]
push eax
push ebx
lea eax, [ebp - 0x3c]
push eax
push ebx
mov dword [ebp - 0x3c], 0x28
mov word [ebp - 0x2e], cx
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 0x1ad], bl
mov dword [ebp - 0x1b8], ebx
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov dword [ebp - 0x1d0], eax
cmp eax, ebx
je 0x47af08
mov eax, dword [ebp - 0x1cc]
imul eax, dword [ebp - 0x1c4]
mov dword [ebp - 0x1b4], ebx
test eax, eax
jle 0x47b0c7
mov ecx, dword [ebp - 0x1b4]
mov eax, dword [ebp - 0x1bc]
mov edx, dword [ebp - 0x1b8]
lea esi, [eax + ecx*4 + 3]
mov al, byte [esi]
mov byte [edx + ecx*4 + 3], al
mov eax, dword [ebp - 0x1b8]
lea edi, [eax + ecx*4]
cmp byte [edi + 3], 0xff
mov dword [ebp - 0x1c0], edi
jae 0x47b053
movzx edx, byte [esi]
movzx eax, byte [esi - 1]
imul eax, edx
xor edx, edx
mov edi, 0xff
div edi
mov edx, dword [ebp - 0x1c0]
mov byte [ebp - 0x1ad], 1
mov byte [edx], al
movzx edx, byte [esi]
movzx eax, byte [esi - 2]
imul eax, edx
xor edx, edx
div edi
mov edx, dword [ebp - 0x1b8]
mov byte [edx + ecx*4 + 1], al
movzx edx, byte [esi]
movzx eax, byte [esi - 3]
imul eax, edx
xor edx, edx
mov esi, edi
div esi
jmp 0x47b068
mov al, byte [esi - 1]
mov byte [edi], al
mov al, byte [esi - 2]
mov edx, dword [ebp - 0x1b8]
mov byte [edx + ecx*4 + 1], al
mov al, byte [esi - 3]
mov edx, dword [ebp - 0x1b8]
mov byte [edx + ecx*4 + 2], al
mov eax, dword [ebp - 0x1b8]
mov edx, dword [eax + ecx*4]
cmp edx, dword [ebp + 0x10]
jne 0x47b0a8
mov byte [eax + ecx*4], bl
mov eax, dword [ebp - 0x1b8]
mov byte [eax + ecx*4 + 1], bl
mov eax, dword [ebp - 0x1b8]
mov byte [eax + ecx*4 + 2], bl
mov eax, dword [ebp - 0x1b8]
mov byte [eax + ecx*4 + 3], bl
mov byte [ebp - 0x1ad], 1
mov eax, dword [ebp - 0x1cc]
imul eax, dword [ebp - 0x1c4]
inc dword [ebp - 0x1b4]
cmp dword [ebp - 0x1b4], eax
jl 0x47afd6
push dword [ebp - 0x1bc]
call fcn.00491e19
push 0x58
call fcn.004cabf3
pop ecx
mov esi, eax
pop ecx
mov dword [ebp - 0x1c0], esi
mov dword [ebp - 4], 1
cmp esi, ebx
je 0x47b0f8
lea ecx, [esi + 0x10]
call fcn.0046e719
mov ebx, esi
mov eax, dword [ebp - 0x1d0]
mov dword [ebx], eax
mov eax, dword [ebp - 0x1cc]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x1c4]
mov dword [ebx + 8], eax
mov al, byte [ebp - 0x1ad]
mov byte [ebx + 0xc], al
mov eax, ebx
call fcn.004cb19a
ret