Function at 0x1008f760
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10130530
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x10188068]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x1008fa26
mov eax, dword [esi + 0xd4]
mov dword [ebp - 0x10], 0
cmp eax, 1
jne 0x1008f87d
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
mov ebx, dword [esi + 0x4c]
mov ecx, ebx
mov dword [ebp - 0x28], ebx
call sym.cloudinput.ime_protected:_void___thiscall_boost::serialization::singleton_class_boost::serialization::extended_type_info_typeid_struct_weasel::CandidateInfo__::constructor_void_
mov edi, eax
test edi, edi
je 0x1008f7de
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov dword [ebp - 0x2c], vtable.CSmartPtr_class_IDBFile_.0
mov byte [ebp - 4], 1
test ebx, ebx
je 0x1008f80f
cmp dword [esi + 0x90], 8
lea ecx, [esi + 0x7c]
jb 0x1008f7fb
mov ecx, dword [ecx]
mov eax, dword [ebx]
lea edx, [ebp - 0x18]
push edx
lea edx, [ebp - 0x14]
push edx
push ecx
mov ecx, ebx
call dword [eax + 0x10]
test eax, eax
js 0x1008f852
mov edx, dword [ebp - 0x14]
test edx, edx
je 0x1008f852
push dword [ebp - 0x18]
lea ecx, [ebp - 0x10]
call fcn.10092b90
add esp, 4
test eax, eax
js 0x1008f84c
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x1008f84c
mov byte [ebp - 4], 5
test edi, edi
je 0x1008f83d
mov eax, dword [edi]
push edi
call dword [eax + 8]
mov dword [ebp - 4], 0xffffffff
push dword [ebp - 0x14]
jmp 0x1008f9aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [ebp - 4], 4
test edi, edi
je 0x1008f860
mov eax, dword [edi]
push edi
call dword [eax + 8]
push dword [ebp - 0x14]
call fcn.100e2ea5
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x1008f92d
lea eax, [esi + 0xe0]
push eax
movzx eax, word [esi + 0xdc]
push eax
push dword [esi + 0xd8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x1008fa20
push edi
push dword [esi + 0xd8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push dword [esi + 0xd8]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], 6
test edi, edi
je 0x1008f90e
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x1008f90e
push ebx
mov edx, eax
lea ecx, [ebp - 0x10]
call fcn.10092b90
add esp, 4
test eax, eax
js 0x1008f90e
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x1008f90e
push edi
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x1008f9b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 3
jne 0x1008fa20
lea ecx, [esi + 0x160]
mov dword [ebp - 0x18], 0
lea edx, [ebp - 0x18]
call fcn.1004d1a0
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x1008fa20
test eax, eax
jle 0x1008fa20
mov dword [ebp - 0x1c], edi
push eax
mov edx, edi
mov dword [ebp - 4], 7
lea ecx, [ebp - 0x10]
call fcn.10092b90
add esp, 4
test eax, eax
js 0x1008f981
mov ebx, dword [ebp - 0x10]
test ebx, ebx
jne 0x1008f9a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call fcn.100e2ea5
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
push edi
call fcn.100e2ea5
add esp, 4
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x20], 0
mov eax, dword [ebx]
push ecx
mov ecx, ebx
call dword [eax + 4]
mov eax, dword [ebp - 0x24]
mov ecx, ebx
push dword [esi + 0xc4]
mov dword [esi + 0x64], eax
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x68], eax
mov dword [esi + 0x6c], ebx
mov eax, dword [ebx]
call dword [eax + 0x1c]
mov ecx, dword [esi + 0x6c]
test ecx, ecx
je 0x1008fa26
cmp byte [esi + 0x70], 0
mov eax, dword [ecx]
je 0x1008fa0b
call dword [eax + 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [eax + 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret