Function at 0x43f39c
Capabilities:
Extract resource via kernel32 functions
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x4971a0
push str.OLEPRO32.DLL
push str.OleLoadPicture
mov esi, ecx
call fcn.00427f74
mov eax, dword [ebp + 8]
add esp, 0x10
cmp eax, ebx
jne 0x43f3d2
mov dword [ebp + 8], 0x64
mov eax, dword [ebp + 8]
cmp eax, 0x10000
jge 0x43f41c
mov edi, dword [0x496dd4]
movzx eax, ax
push str.IMAGE
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x43f5e4
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, 8
mov dword [esi], eax
jb 0x43f5e4
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
jmp 0x43f4a4
mov ecx, dword [ebp + 0xc]
cmp ecx, ebx
je 0x43f429
mov eax, dword [eax]
mov dword [esi], ecx
jmp 0x43f4a4
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push eax
lea ecx, [ebp - 4]
mov dword [ebp - 4], ebx
call fcn.00403c6d
cmp dword [ebp - 4], ebx
jne 0x43f44f
or esi, 0xffffffff
jmp 0x43f47d
push ebx
lea eax, [ebp - 8]
push eax
push 6
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x14]
push eax
call fcn.0042be7b
test eax, eax
pop ecx
jne 0x43f48c
push 0xfffffffffffffffe
pop esi
lea ecx, [ebp - 4]
call fcn.0040296e
mov eax, esi
jmp 0x43f60d
lea ecx, [ebp - 4]
call fcn.0040296e
push ebx
push esi
push dword [ebp + 8]
call fcn.00433b8f
add esp, 0xc
mov dword [esi + 0x2c], eax
cmp eax, ebx
mov dword [esi + 4], eax
je 0x43f5e4
push eax
call fcn.0042be7b
test eax, eax
pop ecx
jne 0x43f4c2
push 0xfffffffffffffffe
pop eax
jmp 0x43f60d
cmp dword [esi], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x20], 0xffffff9c
mov dword [esi + 0x18], ebx
mov dword [esi + 0x24], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
jbe 0x43f5de
mov edi, dword [esi + 4]
lea eax, [edi + ebx]
mov cl, byte [eax]
cmp cl, 0x2c
jne 0x43f58b
cmp byte [eax - 1], 0
jne 0x43f5d0
cmp dword [esi + 0x14], 0
jne 0x43f507
mov dword [esi + 0x18], ebx
movzx edx, byte [eax + 9]
xor eax, eax
mov ecx, edx
inc eax
and ecx, 7
inc ecx
shl eax, cl
shr edx, 7
imul eax, edx
lea eax, [eax + eax*2 + 0xb]
push eax
lea eax, [ebp - 4]
push eax
push edi
call fcn.0042be52
push 0xc
mov dword [ebp - 4], eax
call fcn.0046c708
xor edi, edi
add esp, 0x10
cmp eax, edi
je 0x43f548
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov edi, eax
push dword [esi + 0x14]
lea ecx, [esi + 8]
call fcn.00409e7a
push dword [ebp - 4]
mov dword [eax], edi
call fcn.0046c708
push dword [ebp - 4]
mov dword [edi], eax
mov ecx, dword [esi + 4]
add ecx, ebx
push ecx
push eax
call fcn.0046c720
movzx ecx, word [ebp - 8]
mov eax, dword [ebp - 4]
and dword [ebp - 8], 0
add esp, 0x10
mov dword [edi + 4], eax
mov dword [edi + 8], ecx
inc dword [esi + 0x14]
lea ebx, [ebx + eax - 1]
jmp 0x43f5d0
cmp cl, 0x21
jne 0x43f5d0
mov cl, byte [eax + 1]
cmp cl, 0xf9
jne 0x43f5a8
movzx eax, word [eax + 4]
imul ax, ax, 0xa
add ebx, 7
mov dword [ebp - 8], eax
jmp 0x43f5d0
cmp cl, 0xff
jne 0x43f5b1
push 0xe
jmp 0x43f5c1
cmp cl, 0xfe
jne 0x43f5ba
push 2
jmp 0x43f5c1
cmp cl, 1
jne 0x43f5d0
push 0x10
lea eax, [ebp - 4]
push eax
push edi
call fcn.0042be52
add esp, 0xc
add ebx, eax
inc ebx
cmp ebx, dword [esi]
mov dword [ebp - 4], ebx
jb 0x43f4e3
xor ebx, ebx
cmp dword [esi + 0x14], 1
jg 0x43f5e9
or eax, 0xffffffff
jmp 0x43f60d
cmp dword [ebp + 0xc], ebx
je 0x43f5f9
mov eax, dword [esi + 4]
mov dword [esi + 0x2c], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
lea eax, [ebp - 0xc]
push eax
push 4
push dword [esi]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [esi + 0x14]
pop edi
pop esi
pop ebx
leave
ret 8