Function at 0x10051e10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x100925a2
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100b0380]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x48]
xor ebp, ebp
cmp dword [esp + 0x50], ebp
je 0x1005203d
cmp dword [esp + 0x54], ebp
je 0x1005203d
mov eax, dword [esp + 0x4c]
push 0x100a2a90
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebp
je 0x1005203d
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
cmp edi, ebp
je 0x1005203d
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [esp + 0x1c], eax
cmp eax, ebp
je 0x1005203d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
cmp esi, ebp
je 0x1005203d
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
cmp ebx, ebp
jne 0x10051eca
mov eax, 0x8007000e
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
push edi
push esi
push ebx
call fcn.10081350
add esp, 0xc
mov dword [esp + 0x14], ebp
mov edi, 1
mov dword [esp + 0x40], edi
lea ecx, [esp + 0x14]
push ecx
push edi
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov esi, eax
cmp esi, ebp
jge 0x10051f0c
mov dword [esp + 0x40], 0xffffffff
lea edx, [esp + 0x14]
push edx
call fcn.1002cfb0
jmp 0x10052011
push 0x10
xor ebx, ebx
call sub.gdiplus.dll_GdipAlloc
mov dword [esp + 0x18], eax
mov byte [esp + 0x40], 2
cmp eax, ebp
je 0x10051f2e
mov ecx, dword [esp + 0x14]
push eax
call fcn.10053030
jmp 0x10051f30
xor eax, eax
mov byte [esp + 0x40], 1
mov dword [esp + 0x18], eax
mov byte [esp + 0x40], 3
cmp eax, ebp
jne 0x10051fcf
push ebp
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
call sub.gdiplus.dll_GdiplusStartup
cmp eax, ebp
je 0x10051fa0
mov byte [esp + 0x40], 1
lea esi, [esp + 0x18]
call fcn.10053390
mov dword [esp + 0x40], 0xffffffff
lea edx, [esp + 0x14]
push edx
call fcn.1002cfb0
xor eax, eax
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov dword [esp + 0x24], eax
mov byte [esp + 0x40], 4
cmp eax, ebp
je 0x10051fc0
mov ecx, dword [esp + 0x14]
push eax
call fcn.10053030
jmp 0x10051fc2
xor eax, eax
mov byte [esp + 0x40], 3
mov dword [esp + 0x18], eax
cmp eax, ebp
je 0x10051feb
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
mov dword [ecx], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], ebp
mov dword [edx], eax
xor esi, esi
jmp 0x10051ff0
mov esi, 0x80004005
mov byte [esp + 0x40], 1
mov dword [esp + 0x18], ebp
mov dword [esp + 0x40], 0xffffffff
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x10052011
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp ebx, ebp
je 0x10052027
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
mov eax, 0x80070057
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret