Function at 0x10029660
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b1918
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x100e6008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x48], ecx
mov eax, dword [ebp + 8]
test ecx, ecx
je 0x10029882
push 0x100c8690
movzx eax, ax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x10029882
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x10029882
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10029882
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10029882
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x10029882
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x1002987b
push ebx
push esi
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push eax
push 0
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x1002987b
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x1002987b
call fcn.10024ed0
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
test esi, esi
je 0x10029882
mov eax, dword [esi + 8]
mov dword [esi + 8], 0
test eax, eax
je 0x1002977a
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
xor esi, esi
test esi, esi
je 0x10029882
xor bl, bl
mov dword [ebp - 0x50], esi
mov byte [ebp - 0x4c], bl
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
push dword [esi + 4]
mov dword [ebp - 0x28], 0
call dword [sym.imp.gdiplus.dll_GdipGetImageWidth]
test eax, eax
je 0x100297ac
mov dword [esi + 8], eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
push dword [esi + 4]
call dword [sym.imp.gdiplus.dll_GdipGetImageHeight]
test eax, eax
je 0x100297c7
mov dword [esi + 8], eax
mov edi, dword [ebp - 0x48]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x28], edx
cmp dword [edi + 0x3c], 0
mov dword [ebp - 0x34], eax
je 0x10029828
mov eax, dword [edi + 0x40]
test eax, eax
jle 0x10029828
mov ecx, dword [edi + 0x44]
test ecx, ecx
jle 0x10029828
cmp dword [edi + 0x3c], 1
mov dword [ebp - 0x3c], edx
mov edx, dword [ebp - 0x2c]
push ecx
mov dword [ebp - 0x34], ecx
mov ecx, esi
mov dword [ebp - 0x38], edx
lea edx, [ebp - 0x44]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
push eax
jne 0x1002981e
call fcn.10028930
add esp, 8
jmp 0x1002982f
call fcn.10028dc0
add esp, 8
jmp 0x1002982f
mov bl, 1
mov eax, esi
mov byte [ebp - 0x4c], bl
push eax
mov ecx, edi
call fcn.100280a0
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [edi + 0x18]
mov dword [ebp - 0x24], 0
push eax
mov dword [ebp - 0x20], 0
call dword [sym.imp.USER32.dll_CopyRect]
mov dword [ebp - 4], 0xffffffff
test bl, bl
jne 0x10029882
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
mov dword [ebp - 0x50], 0
jmp 0x10029882
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100ab466
mov esp, ebp
pop ebp
ret