Function at 0x5b4db5
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 0x5b4f4c
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 0x5b4f08
push 0x44926c
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 0x5b4e16
mov eax, 0x80004005
jmp 0x5b4fbd
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
mov dword [ebp - 8], eax
je 0x5b4e0c
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 fcn.0066e76e
add esp, 0xc
lea ecx, [ebp + 0x18]
mov dword [ebp + 0x18], esi
call fcn.005fc665
push eax
push 1
push dword [ebp + 8]
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
cmp dword [ebp + 0x18], esi
je 0x5b4e0c
push esi
push dword [ebp + 0x18]
call fcn.005b491d
mov edi, eax
cmp edi, esi
mov eax, dword [ebp + 0x18]
mov dword [ebp + 0x18], esi
jne 0x5b4ea2
cmp eax, esi
je 0x5b4e0c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x5b4e0c
cmp eax, esi
je 0x5b4eac
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, edi
call fcn.005b47bc
mov ecx, edi
mov dword [ebp + 8], eax
call fcn.005b47e1
mov ecx, dword [ebp + 0x10]
cmp ecx, esi
mov dword [ebp + 0xc], eax
je 0x5b4fb2
cmp dword [ebp + 0x14], esi
je 0x5b4fb2
cmp ecx, dword [ebp + 8]
jne 0x5b4ee2
cmp dword [ebp + 0x14], eax
je 0x5b4fb2
mov ecx, edi
call fcn.005b4806
push 0x10
mov ebx, eax
call sub.gdiplus.dll_GdipAlloc
cmp eax, esi
je 0x5b4f59
push ebx
push dword [ebp + 0x14]
mov ecx, eax
push dword [ebp + 0x10]
call fcn.005b489b
mov ebx, eax
jmp 0x5b4f5b
cmp dword [ebp + 0x18], 0xe200b
je 0x5b4f1a
cmp dword [ebp + 0x18], 0x26200a
jne 0x5b4f29
push dword [ebp + 0x18]
push eax
call fcn.005b49d6
mov edi, eax
cmp edi, esi
jne 0x5b4f34
push esi
push dword [ebp + 0xc]
call fcn.005b4939
mov edi, eax
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp edi, esi
jne 0x5b4eac
mov eax, 0x8007000e
jmp 0x5b4fbd
push esi
push dword [ebp + 8]
call fcn.005b4901
mov edi, eax
jmp 0x5b4f3d
xor ebx, ebx
cmp ebx, esi
je 0x5b4fa4
push ebx
lea ecx, [ebp - 0xc]
call fcn.005b4d2e
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.005b4d5b
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 0x5b4fba
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
jmp 0x5b4fba
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