Function at 0x4171e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49d0ad
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x28
mov eax, dword [0x4d7200]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x14]
mov esi, dword [ebx + 8]
push 0x4c0144
push eax
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebx + 0x18]
push esi
mov dword [ebp - 0x34], ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x4173df
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x4173df
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4173df
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x4173df
xor esi, esi
mov dword [ebp - 0x2c], esi
xor eax, eax
mov dword [ebp - 4], esi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x4173bc
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x4173bf
mov ecx, dword [eax]
mov edi, dword [ebp - 0x1c]
push esi
push edi
push eax
call dword [ecx + 0x18]
test eax, eax
jne 0x4173bc
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x24]
push edx
push edi
push dword [ebp - 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
test eax, eax
jne 0x4173bc
cmp dword [ebp - 0x24], edi
jne 0x4173bc
push 0x10
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov edi, eax
mov dword [ebp - 0x20], edi
test edi, edi
je 0x4173ad
xorps xmm0, xmm0
mov dword [ebp - 0x2c], esi
lea eax, [ebp - 0x2c]
movups xmmword [edi], xmm0
mov ecx, dword [ebp - 0x28]
push eax
push ecx
mov dword [edi], vtable.Gdiplus::Bitmap.0
call dword [sym.imp.gdiplus.dll_GdipCreateBitmapFromStream]
mov dword [edi + 8], eax
mov esi, edi
mov eax, dword [ebp - 0x2c]
mov dword [edi + 4], eax
mov dword [ebp - 0x2c], esi
test edi, edi
je 0x4173b2
mov eax, dword [edi + 8]
mov dword [edi + 8], 0
test eax, eax
jne 0x4173b2
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push dword [edi + 4]
call dword [sym.imp.gdiplus.dll_GdipGetImageWidth]
test eax, eax
je 0x417352
mov dword [edi + 8], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push dword [edi + 4]
call dword [sym.imp.gdiplus.dll_GdipGetImageHeight]
test eax, eax
je 0x41736d
mov dword [edi + 8], eax
mov edx, dword [ebp - 0x30]
test edx, edx
mov ecx, dword [ebp - 0x34]
cmove edx, dword [ebp - 0x1c]
test ecx, ecx
cmove ecx, dword [ebp - 0x18]
cmp dword [ebp - 0x1c], edx
jne 0x417396
cmp dword [ebp - 0x18], ecx
jne 0x417396
mov eax, dword [ebp - 0x28]
xor esi, esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x20], esi
jmp 0x4173c1
push ecx
push ecx
mov ecx, edi
call fcn.004053c0
mov edi, eax
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x28]
jmp 0x4173c1
xor esi, esi
mov dword [ebp - 0x2c], esi
mov eax, dword [ebp - 0x28]
xor edi, edi
mov dword [ebp - 0x20], edi
jmp 0x4173c1
mov eax, dword [ebp - 0x28]
xor edi, edi
mov byte [ebp - 4], 6
test eax, eax
je 0x4173cf
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
test esi, esi
je 0x4173db
mov edx, dword [esi]
mov ecx, esi
push 1
call dword [edx]
mov eax, edi
jmp 0x4173e1
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00489ec5
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x18