Function at 0x5406b7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
mov eax, dword [ebp + 8]
xor ecx, ecx
push ebx
push esi
push edi
movzx edx, word [eax]
mov ebx, 0x4009
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], ecx
cmp edx, 9
je 0x5406ec
mov ecx, edx
cmp dx, bx
jne 0x54074e
mov ecx, dword [eax + 8]
test edx, 0x4000
je 0x5406f9
mov ecx, dword [ecx]
test ecx, ecx
je 0x5409cf
push 0
push 0
lea edx, [esp + 0x5c]
xor eax, eax
push edx
lea edx, [esp + 0x1c]
mov word [esp + 0x60], ax
push edx
push 3
push 0
push 0x5c0a38
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov eax, dword [ecx]
push 0
push ecx
call dword [eax + 0x18]
mov esi, eax
mov dword [esp + 0x64], esi
test esi, esi
js 0x5409d8
movzx ecx, word [esp + 0x54]
lea eax, [esp + 0x54]
mov ebx, 0x4008
mov edi, 8
lea edx, [ebx + 4]
cmp cx, bx
jne 0x540773
mov cx, di
mov word [esp + 0x44], cx
mov eax, dword [eax + 8]
mov ebx, dword [eax]
mov dword [esp + 0x4c], ebx
jmp 0x5407db
cmp cx, di
jne 0x540788
mov ecx, edi
mov word [esp + 0x44], cx
mov ebx, dword [eax + 8]
mov dword [esp + 0x4c], ebx
jmp 0x5407db
cmp cx, 1
jne 0x540798
mov esi, 0x800a005e
jmp 0x5409d4
xor ecx, ecx
mov word [esp + 0x44], cx
cmp word [eax], dx
jne 0x5407af
lea ecx, [ecx]
mov eax, dword [eax + 8]
cmp word [eax], dx
je 0x5407a7
push 3
push 2
push 0x400
push eax
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.OLEAUT32.dll_SafeArrayPtrOfIndex]
mov esi, eax
mov dword [esp + 0x64], esi
test esi, esi
js 0x5409d8
mov ebx, dword [esp + 0x4c]
mov cx, word [esp + 0x44]
mov dword [esp + 0x64], 0
cmp cx, di
jne 0x5407f6
test ebx, ebx
jne 0x54080d
mov esi, 0x80004005
jmp 0x5409d8
cmp ebx, 0x7fff
jle 0x540808
mov esi, 0x80004005
jmp 0x5409d8
movzx ebx, word [esp + 0x4c]
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ecx
movzx edx, word [eax]
mov dword [esp + 0x3c], ecx
cmp edx, 9
je 0x540836
mov esi, 0x4009
mov ecx, edx
cmp dx, si
jne 0x540898
mov ecx, dword [eax + 8]
test edx, 0x4000
je 0x540843
mov ecx, dword [ecx]
test ecx, ecx
je 0x5409af
push 0
push 0
lea edx, [esp + 0x38]
xor eax, eax
push edx
lea edx, [esp + 0x1c]
mov word [esp + 0x3c], ax
push edx
push 3
push 0
push 0x5c0a38
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov eax, dword [ecx]
push 0
push ecx
call dword [eax + 0x18]
mov esi, eax
mov dword [esp + 0x40], esi
test esi, esi
js 0x5409b8
movzx ecx, word [esp + 0x30]
lea eax, [esp + 0x30]
mov edx, 0x4008
cmp cx, dx
jne 0x5408b2
mov word [esp + 0x20], di
mov eax, dword [eax + 8]
mov eax, dword [eax]
mov dword [esp + 0x28], eax
jmp 0x54091b
cmp cx, di
jne 0x5408c5
mov word [esp + 0x20], di
mov eax, dword [eax + 8]
mov dword [esp + 0x28], eax
jmp 0x54091b
cmp cx, 1
jne 0x5408d5
mov esi, 0x800a005e
jmp 0x5409b4
xor ecx, ecx
mov word [esp + 0x20], cx
mov ecx, 0x400c
cmp word [eax], cx
jne 0x5408ef
nop
mov eax, dword [eax + 8]
cmp word [eax], cx
je 0x5408e7
push 3
push 2
push 0x400
push eax
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.OLEAUT32.dll_SafeArrayPtrOfIndex]
mov esi, eax
mov dword [esp + 0x40], esi
test esi, esi
js 0x5409b8
mov eax, dword [esp + 0x28]
mov di, word [esp + 0x20]
mov dword [esp + 0x40], 0
cmp di, 8
jne 0x540937
test eax, eax
jne 0x54094a
mov esi, 0x80004005
jmp 0x5409b8
cmp eax, 0x7fff
jle 0x540945
mov esi, 0x80004005
jmp 0x5409b8
movzx eax, word [esp + 0x28]
push eax
push ebx
push 0x400000
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x540964
mov esi, 0x80004005
jmp 0x5409b8
push esi
push 0x400000
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push 0x400000
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x54098b
mov esi, 0x80004005
jmp 0x5409b8
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push dword [ebp + 0x10]
mov edx, ebx
mov ecx, eax
call fcn.00540638
mov esi, eax
test esi, esi
js 0x5409b8
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor esi, esi
jmp 0x5409b8
mov esi, 0x800a005b
mov dword [esp + 0x40], esi
cmp word [esp + 0x30], 0
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
je 0x5409de
lea eax, [esp + 0x30]
push eax
call edi
jmp 0x5409de
mov esi, 0x800a005b
mov dword [esp + 0x64], esi
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp word [esp + 0x54], 0
je 0x5409ed
lea eax, [esp + 0x54]
push eax
call edi
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc