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

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4e6618
push eax
mov eax, dword [0x519460]
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 0x464911
push str.OLEPRO32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebp
je 0x46490b
push str.OleLoadPicture
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x519460], eax
jmp 0x464911
mov dword [0x519460], ebp
mov edi, dword [esp + 0x34]
cmp edi, ebp
jne 0x464925
mov dword [esp + 0x34], 0x64
mov edi, dword [esp + 0x34]
xor eax, eax
cmp edi, 0x10000
setl al
cmp eax, ebp
je 0x464976
mov esi, dword [0x51907c]
movzx eax, di
push str.IMAGE
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebp, eax
test ebp, ebp
je 0x464ba7
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, 8
mov dword [ebx], eax
jb 0x464ba7
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
xor ebp, ebp
jmp 0x464a31
mov eax, dword [esp + 0x38]
cmp eax, ebp
je 0x46498a
mov ecx, dword [edi]
mov dword [ebx + 4], ecx
mov dword [ebx], eax
jmp 0x464a34
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.004167bc
mov esi, dword [esp + 0x14]
cmp esi, ebp
je 0x464ba7
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.00445980
add esp, 4
test eax, eax
jne 0x464a0f
cmp esi, 0xffffffff
je 0x4649f5
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 0x464a23
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
push ebx
push edi
call fcn.004536e0
add esp, 0xc
mov dword [ebx + 0x2c], eax
mov dword [ebx + 4], eax
mov eax, dword [ebx + 4]
cmp eax, ebp
je 0x464ba7
push eax
call fcn.00445980
add esp, 4
test eax, eax
je 0x4649f5
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 0x464ba1
mov esi, dword [ebx + 4]
mov al, byte [esi + ebp]
cmp al, 0x2c
jne 0x464b44
mov al, byte [esi + ebp - 1]
test al, al
jne 0x464b92
mov eax, dword [ebx + 0x14]
test eax, eax
jne 0x464a94
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.00445950
mov esi, eax
push 0xc
mov dword [esp + 0x28], esi
call fcn.004c86a5
xor ecx, ecx
add esp, 0x10
cmp eax, ecx
je 0x464ae2
mov edi, eax
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [esp + 0x10], edi
jmp 0x464ae8
mov dword [esp + 0x10], ecx
mov edi, ecx
mov ecx, dword [ebx + 0x14]
push ecx
lea ecx, [ebx + 8]
call fcn.004570e0
push esi
mov dword [eax], edi
call fcn.004c86a5
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 0x464b92
cmp al, 0x21
jne 0x464b92
mov al, byte [esi + ebp + 1]
cmp al, 0xf9
jne 0x464b62
movzx esi, word [esi + ebp + 4]
imul si, si, 0xa
add ebp, 7
mov dword [esp + 0x14], esi
jmp 0x464b92
cmp al, 0xff
jne 0x464b6f
push 0xe
lea eax, [esp + 0x14]
push eax
jmp 0x464b87
cmp al, 0xfe
jne 0x464b7c
push 2
lea ecx, [esp + 0x14]
push ecx
jmp 0x464b87
cmp al, 1
jne 0x464b92
push 0x10
lea edx, [esp + 0x14]
push edx
push esi
call fcn.00445950
add esp, 0xc
add ebp, eax
mov eax, dword [ebx]
inc ebp
cmp ebp, eax
mov dword [esp + 0x10], ebp
jb 0x464a70
cmp dword [ebx + 0x14], 1
jg 0x464bbf
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 0x464bd3
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