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

Disassembly:
push 0x1c8
mov eax, 0x476508
call fcn.0045f5ce
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
xor ebx, ebx
cmp esi, ebx
jne 0x438c05
call fcn.004189c5
push eax
lea ecx, [ebp - 0x80]
call fcn.0041fdf4
mov dword [ebp - 4], ebx
call fcn.004189cb
mov ecx, eax
call fcn.0041f7dc
test al, al
je 0x438b1c
push dword [ebp + 8]
lea ecx, [ebp - 0x80]
call fcn.0041f831
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
lea ecx, [ebp - 0x80]
call fcn.0041f802
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x1bc], eax
cmp eax, 0xffffffff
jne 0x438ac8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.0041f741
jmp 0x438c7f
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebx
je 0x438ab7
push esi
mov dword [ebp - 0x1b4], ebx
call fcn.00417314
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 0x438bf7
push edi
call fcn.0045cf39
pop ecx
jmp 0x438ab7
call fcn.004189cb
push eax
lea ecx, [ebp - 0x80]
call fcn.0041f814
call fcn.004189d1
test al, al
je 0x438b3a
call fcn.004189d7
jmp 0x438b4e
push 2
push ebx
lea ecx, [ebp - 0x80]
call fcn.0041f802
push eax
call fcn.004275f2
add esp, 0xc
mov dword [ebp - 0x1b4], eax
cmp eax, ebx
je 0x438ab7
lea eax, [ebp - 0x1ac]
push eax
lea eax, [ebp - 0x1c0]
push eax
push 1
push dword [ebp + 8]
push dword [ebp - 0x1b4]
call fcn.00425dda
add esp, 0x14
test eax, eax
jne 0x438ab7
mov esi, dword [ebp - 0x84]
cmp esi, ebx
je 0x438ab7
push esi
call fcn.00417314
push 3
push esi
mov edi, eax
push edi
push dword [ebp - 0x1c0]
push dword [ebp - 0x1b4]
call fcn.00427650
add esp, 0x18
cmp eax, ebx
je 0x438be2
cmp eax, 0x600
je 0x438be2
push edi
call fcn.0045cf39
pop ecx
call fcn.004189d1
test al, al
jne 0x438ab7
push dword [ebp - 0x1b4]
call fcn.00427688
jmp 0x438b19
call fcn.004189d1
test al, al
jne 0x438bf7
push dword [ebp - 0x1b4]
call fcn.00427688
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.0041f741
jmp 0x438c7b
cmp eax, ebx
jne 0x438c0e
call fcn.004189b6
push esi
push dword [ebp + 8]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
mov dword [ebp - 0x1c4], esi
cmp esi, ebx
je 0x438c7f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x1c0], eax
push esi
cmp eax, ebx
jne 0x438c42
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x438c7f
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
cmp esi, ebx
je 0x438c7f
push esi
call fcn.00417314
pop ecx
push esi
push dword [ebp - 0x1c0]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push edi
call fcn.0045ee20
add esp, 0xc
push dword [ebp - 0x1c4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp edi, ebx
jne 0x438cfe
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 0x438cf7
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebx
je 0x438cf7
push esi
mov dword [ebp - 0x1cc], ebx
call fcn.00417314
pop ecx
push ebx
mov edi, eax
lea eax, [ebp - 0x1cc]
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 - 0x1cc], esi
je 0x438cf3
push edi
call fcn.0045cf39
pop ecx
xor edi, edi
cmp edi, ebx
jne 0x438cfe
xor eax, eax
jmp 0x438f0c
push 4
lea eax, [ebp - 0x1d0]
push eax
lea eax, [ebp - 0x1bc]
push eax
lea eax, [ebp - 0x1c4]
push eax
push esi
push edi
call fcn.00438997
push edi
mov dword [ebp - 0x1c8], eax
call fcn.0045cf39
add esp, 0x1c
cmp dword [ebp - 0x1c8], ebx
je 0x438cf7
push 0x2c
lea eax, [ebp - 0x3c]
push ebx
push eax
call fcn.0045ed40
mov esi, dword [ebp - 0x1c4]
mov eax, dword [ebp - 0x1bc]
neg eax
mov dword [ebp - 0x34], eax
add esp, 0xc
xor eax, eax
mov edi, esi
imul edi, dword [ebp - 0x1bc]
inc eax
push 0x20
mov word [ebp - 0x30], ax
pop eax
mov word [ebp - 0x2e], ax
push ebx
mov eax, edi
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 dword [ebp - 0x38], esi
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x1d4], edi
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 0x438cf7
mov dword [ebp - 0x1b4], ebx
cmp edi, ebx
jle 0x438eb4
mov ecx, dword [ebp - 0x1b4]
mov eax, dword [ebp - 0x1c8]
mov edx, dword [ebp - 0x1b8]
shl ecx, 2
lea esi, [eax + ecx + 3]
mov al, byte [esi]
mov byte [ecx + edx + 3], al
mov eax, dword [ebp - 0x1b8]
add eax, ecx
cmp byte [eax + 3], 0xff
mov dword [ebp - 0x1c0], eax
jae 0x438e47
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 [ecx + edx + 1], al
movzx edx, byte [esi]
movzx eax, byte [esi - 3]
imul eax, edx
mov esi, edi
mov edi, dword [ebp - 0x1d4]
xor edx, edx
div esi
jmp 0x438e5c
mov dl, byte [esi - 1]
mov byte [eax], dl
mov al, byte [esi - 2]
mov edx, dword [ebp - 0x1b8]
mov byte [ecx + edx + 1], al
mov al, byte [esi - 3]
mov edx, dword [ebp - 0x1b8]
mov byte [ecx + edx + 2], al
mov eax, dword [ebp - 0x1b8]
mov edx, dword [eax + ecx]
cmp edx, dword [ebp + 0x10]
jne 0x438e9c
mov byte [eax + ecx], bl
mov eax, dword [ebp - 0x1b8]
mov byte [ecx + eax + 1], bl
mov eax, dword [ebp - 0x1b8]
mov byte [ecx + eax + 2], bl
mov eax, dword [ebp - 0x1b8]
mov byte [ecx + eax + 3], bl
mov byte [ebp - 0x1ad], 1
inc dword [ebp - 0x1b4]
cmp dword [ebp - 0x1b4], edi
jl 0x438dc2
mov esi, dword [ebp - 0x1c4]
push dword [ebp - 0x1c8]
call fcn.00429d6b
push 0x60
call fcn.0045cf44
pop ecx
mov edi, eax
pop ecx
mov dword [ebp - 0x1d4], edi
mov dword [ebp - 4], 1
cmp edi, ebx
je 0x438ee7
lea ecx, [edi + 0x18]
call fcn.0041f71f
mov eax, edi
jmp 0x438ee9
xor eax, eax
mov ecx, dword [ebp - 0x1d0]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x1bc]
mov dword [eax + 0x10], ecx
mov cl, byte [ebp - 0x1ad]
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], esi
mov byte [eax + 0x14], cl
call fcn.0045f618
ret