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

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4ea9b8
push eax
mov eax, dword [0x51d5b0]
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
push edi
mov ebx, ecx
jne 0x4671f1
push str.OLEPRO32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebp
je 0x4671eb
push str.OleLoadPicture
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x51d5b0], eax
jmp 0x4671f1
mov dword [0x51d5b0], ebp
mov edi, dword [esp + 0x34]
cmp edi, ebp
jne 0x467205
mov dword [esp + 0x34], 0x64
mov edi, dword [esp + 0x34]
xor eax, eax
cmp edi, 0x10000
setl al
cmp eax, ebp
je 0x467256
mov esi, dword [0x51d1cc]
movzx eax, di
push str.IMAGE
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebp, eax
test ebp, ebp
je 0x467487
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, 8
mov dword [ebx], eax
jb 0x467487
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
xor ebp, ebp
jmp 0x467311
mov eax, dword [esp + 0x38]
cmp eax, ebp
je 0x46726a
mov ecx, dword [edi]
mov dword [ebx + 4], ecx
mov dword [ebx], eax
jmp 0x467314
mov dword [esp + 0x14], ebp
push ebp
push 0x80
push 3
push ebp
push 1
push SysReAllocStringLen
push edi
lea ecx, [esp + 0x30]
mov dword [esp + 0x48], ebp
call fcn.00417e55
mov esi, dword [esp + 0x14]
cmp esi, ebp
je 0x467487
push ebp
lea edx, [esp + 0x14]
push edx
push 6
lea eax, [esp + 0x24]
push eax
push esi
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x24], ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [esp + 0x18]
push ecx
call fcn.00448ce0
add esp, 4
test eax, eax
jne 0x4672ef
cmp esi, 0xffffffff
je 0x4672d5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 0xfffffffe
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret 8
cmp esi, 0xffffffff
mov dword [esp + 0x2c], 0xffffffff
je 0x467303
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
push ebx
push edi
call fcn.00454650
add esp, 0xc
mov dword [ebx + 0x2c], eax
mov dword [ebx + 4], eax
mov eax, dword [ebx + 4]
cmp eax, ebp
je 0x467487
push eax
call fcn.00448ce0
add esp, 4
test eax, eax
je 0x4672d5
cmp dword [ebx], 0
mov dword [ebx + 0x1c], ebp
mov dword [ebx + 0x14], ebp
mov dword [ebx + 0x20], 0xffffff9c
mov dword [ebx + 0x18], ebp
mov dword [ebx + 0x24], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], ebp
jbe 0x467481
mov esi, dword [ebx + 4]
mov al, byte [esi + ebp]
cmp al, 0x2c
jne 0x467424
mov al, byte [esi + ebp - 1]
test al, al
jne 0x467472
mov eax, dword [ebx + 0x14]
test eax, eax
jne 0x467374
mov dword [ebx + 0x18], ebp
movzx edx, byte [esi + ebp + 9]
mov ecx, edx
and ecx, 7
inc ecx
mov eax, 1
shl eax, cl
shr edx, 7
imul eax, edx
lea edx, [eax + eax*2 + 0xb]
push edx
lea eax, [esp + 0x14]
push eax
push esi
call fcn.00448cb0
mov esi, eax
push 0xc
mov dword [esp + 0x28], esi
call fcn.004cc845
xor ecx, ecx
add esp, 0x10
cmp eax, ecx
je 0x4673c2
mov edi, eax
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [esp + 0x10], edi
jmp 0x4673c8
mov dword [esp + 0x10], ecx
mov edi, ecx
mov ecx, dword [ebx + 0x14]
push ecx
lea ecx, [ebx + 8]
call fcn.00456230
push esi
mov dword [eax], edi
call fcn.004cc845
mov dword [edi], eax
mov ecx, esi
mov esi, dword [ebx + 4]
mov edx, ecx
shr ecx, 2
add esi, ebp
mov edi, eax
mov eax, dword [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
movzx edx, word [esp + 0x18]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x38]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov eax, dword [ebx + 0x14]
add esp, 4
inc eax
mov dword [esp + 0x14], 0
lea ebp, [ecx + ebp - 1]
mov dword [ebx + 0x14], eax
jmp 0x467472
cmp al, 0x21
jne 0x467472
mov al, byte [esi + ebp + 1]
cmp al, 0xf9
jne 0x467442
movzx esi, word [esi + ebp + 4]
imul si, si, 0xa
add ebp, 7
mov dword [esp + 0x14], esi
jmp 0x467472
cmp al, 0xff
jne 0x46744f
push 0xe
lea eax, [esp + 0x14]
push eax
jmp 0x467467
cmp al, 0xfe
jne 0x46745c
push 2
lea ecx, [esp + 0x14]
push ecx
jmp 0x467467
cmp al, 1
jne 0x467472
push 0x10
lea edx, [esp + 0x14]
push edx
push esi
call fcn.00448cb0
add esp, 0xc
add ebp, eax
mov eax, dword [ebx]
inc ebp
cmp ebp, eax
mov dword [esp + 0x10], ebp
jb 0x467350
cmp dword [ebx + 0x14], 1
jg 0x46749f
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret 8
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4674b3
mov eax, dword [ebx + 4]
mov dword [ebx + 0x2c], eax
mov dword [edi], 0
mov edx, dword [ebx]
mov eax, dword [ebx + 4]
lea ecx, [esp + 0x20]
push ecx
push 4
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebx + 0x14]
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 8