Function at 0x10029400
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b18f0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x100e6008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov eax, ecx
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x10029644
test esi, esi
je 0x10029644
push 0x100c8680
push 0x6e
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ebx, eax
test ebx, ebx
je 0x10029519
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10029519
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10029519
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x10029519
push dword [ebp - 0x14]
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x10029519
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x10029516
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x10029516
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x10029516
call fcn.10024ed0
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
test edi, edi
je 0x1002951b
mov eax, dword [edi + 8]
mov dword [edi + 8], 0
test eax, eax
je 0x1002951b
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax]
jmp 0x10029519
push ebx
call edi
xor edi, edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], 0
test edi, edi
je 0x10029631
push 0x100c8680
push 0x6f
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x10029605
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [ebp - 0x14], ebx
test ebx, ebx
je 0x10029605
push dword [ebp - 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10029605
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10029605
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x10029605
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x100295fe
push dword [ebp - 0x14]
push esi
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x100295fe
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x100295fe
call fcn.10024ed0
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
test esi, esi
je 0x10029607
mov eax, dword [esi + 8]
mov dword [esi + 8], 0
test eax, eax
je 0x10029607
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
jmp 0x10029605
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor esi, esi
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 1
test esi, esi
je 0x10029621
push ecx
mov ecx, dword [ebp - 0x1c]
mov edx, edi
push esi
call fcn.100291f0
add esp, 8
mov byte [ebp - 4], 0
test esi, esi
je 0x10029631
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x10029644
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret