Function at 0x30168755
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0x1c]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
cmp ebx, esi
push edi
mov dword [ebp - 4], 0x80070057
mov dword [eax], esi
je 0x301688ec
push 0xa000
push esi
push esi
push esi
push dword [ebp + 8]
push ebx
call dword [sym.imp.USER32.dll_LoadImageW]
cmp eax, esi
mov dword [ebp + 0xc], eax
jne 0x301688a8
push 0x3003a35c
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
mov dword [ebp + 0xc], edi
jne 0x301687b6
mov eax, 0x80004005
jmp 0x3016895d
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
mov dword [ebp - 8], eax
je 0x301687ac
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
call edi
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push dword [ebp + 0xc]
mov dword [ebp + 8], eax
push ebx
call edi
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
call sub.MSVCR80.dll_memcpy
add esp, 0xc
lea ecx, [ebp + 0x18]
mov dword [ebp + 0x18], esi
call fcn.301bcf1d
push eax
push 1
push dword [ebp + 8]
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
cmp dword [ebp + 0x18], esi
je 0x301687ac
push esi
push dword [ebp + 0x18]
call fcn.301682e4
mov edi, eax
cmp edi, esi
mov eax, dword [ebp + 0x18]
mov dword [ebp + 0x18], esi
jne 0x30168842
cmp eax, esi
je 0x301687ac
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x301687ac
cmp eax, esi
je 0x3016884c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, edi
call fcn.301459ed
mov ecx, edi
mov dword [ebp + 8], eax
call fcn.30145a12
mov ecx, dword [ebp + 0x10]
cmp ecx, esi
mov dword [ebp + 0xc], eax
je 0x30168952
cmp dword [ebp + 0x14], esi
je 0x30168952
cmp ecx, dword [ebp + 8]
jne 0x30168882
cmp dword [ebp + 0x14], eax
je 0x30168952
mov ecx, edi
call fcn.301681cd
push 0x10
mov ebx, eax
call sub.gdiplus.dll_GdipAlloc
cmp eax, esi
je 0x301688f9
push ebx
push dword [ebp + 0x14]
mov ecx, eax
push dword [ebp + 0x10]
call fcn.30168262
mov ebx, eax
jmp 0x301688fb
cmp dword [ebp + 0x18], 0xe200b
je 0x301688ba
cmp dword [ebp + 0x18], 0x26200a
jne 0x301688c9
push dword [ebp + 0x18]
push eax
call fcn.3016839d
mov edi, eax
cmp edi, esi
jne 0x301688d4
push esi
push dword [ebp + 0xc]
call fcn.30168300
mov edi, eax
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp edi, esi
jne 0x3016884c
mov eax, 0x8007000e
jmp 0x3016895d
push esi
push dword [ebp + 8]
call fcn.301682c8
mov edi, eax
jmp 0x301688dd
xor ebx, ebx
cmp ebx, esi
je 0x30168944
push ebx
lea ecx, [ebp - 0xc]
call fcn.301686ce
mov eax, dword [ebp + 0x10]
push esi
push esi
push esi
push 2
push dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
push dword [ebp + 8]
mov eax, dword [ebp + 0x14]
push esi
mov dword [ebp - 0x10], eax
push esi
lea eax, [ebp - 0x1c]
push eax
push edi
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
call fcn.301686fb
mov eax, dword [ebp + 0x1c]
push dword [ebp - 0xc]
mov dword [eax], ebx
mov dword [ebp - 4], esi
call sub.gdiplus.dll_GdipDeleteGraphics
cmp edi, esi
je 0x3016895a
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
jmp 0x3016895a
mov eax, dword [ebp + 0x1c]
mov dword [eax], edi
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x18