Function at 0x401420
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43ead3
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x451130]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [edi], vtable.GacelaGlobalContext.0
mov dword [ebp - 0x40], edi
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
call fcn.00403760
mov dword [edi + 0x10], eax
mov dword [ebp - 4], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
call fcn.00403760
mov dword [edi + 0x18], eax
mov byte [ebp - 4], 1
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
call fcn.00403760
mov dword [edi + 0x20], eax
mov byte [ebp - 4], 2
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
call fcn.00403760
mov dword [edi + 0x28], eax
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov esi, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea ebx, [edi + 0x40]
xorps xmm0, xmm0
movq qword [ebx], xmm0
push ebx
movq qword [ebx + 8], xmm0
call esi
lea eax, [edi + 0x60]
xorps xmm0, xmm0
movq qword [eax], xmm0
push eax
movq qword [eax + 8], xmm0
call esi
inc dword [0x454b3c]
xor eax, eax
mov word [edi + 0x5a], ax
or eax, 0xffffffff
push str.psapi.dll
mov dword [edi + 8], 0
mov word [edi + 0x58], ax
mov byte [edi + 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp byte [edi + 4], 0
mov dword [edi + 0xc], eax
je 0x401539
test eax, eax
je 0x401539
mov eax, 1
jmp 0x40153b
xor eax, eax
mov byte [edi + 4], al
lea eax, [ebp - 0x20]
push eax
call fcn.0040c82e
add esp, 4
push 0
push 0x3e8
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call fcn.0041ffb0
mov ecx, eax
movzx eax, word [ebp - 0x18]
mov esi, edx
cdq
add ecx, eax
adc esi, edx
mov eax, 0x14
mov word [ebp - 0x20], ax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], esi
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 9
cmp ebx, eax
je 0x4015a0
push eax
push ebx
call dword [sym.imp.OLEAUT32.dll_VariantCopyInd]
test eax, eax
jns 0x4015a0
mov ecx, 0xa
push eax
mov word [ebx], cx
mov dword [ebx + 8], eax
call fcn.00401010
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 8
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov esi, dword [sym.imp.ole32.dll_CoCreateInstance]
lea ebx, [edi + 0x30]
push ebx
push 0x4495d4
push 1
push 0
push 0x449554
call esi
cmp byte [edi + 4], 0
je 0x4015de
test eax, eax
js 0x4015de
cmp dword [ebx], 0
je 0x4015de
mov eax, 1
jmp 0x4015e0
xor eax, eax
lea ebx, [edi + 0x34]
push ebx
push 0x449584
push 1
push 0
push 0x4495a4
mov byte [edi + 4], al
call esi
cmp byte [edi + 4], 0
je 0x40160d
test eax, eax
js 0x40160d
cmp dword [ebx], 0
je 0x40160d
mov eax, 1
jmp 0x40160f
xor eax, eax
lea ebx, [edi + 0x38]
push ebx
push 0x449534
push 1
push 0
push 0x449524
mov byte [edi + 4], al
call esi
cmp byte [edi + 4], 0
je 0x40163c
test eax, eax
js 0x40163c
cmp dword [ebx], 0
je 0x40163c
mov eax, 1
jmp 0x40163e
xor eax, eax
mov ecx, dword [ebx]
push dword [edi + 0x30]
mov byte [edi + 4], al
mov eax, dword [ecx]
push ecx
call dword [eax + 0x24]
cmp byte [edi + 4], 0
je 0x40165d
test eax, eax
js 0x40165d
mov eax, 1
jmp 0x40165f
xor eax, eax
mov byte [edi + 4], al
lea eax, [ebp - 0x20]
push eax
mov dword [edi + 0x54], 0
call fcn.0040c82e
add esp, 4
push 0
push 0x3e8
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call fcn.0041ffb0
mov esi, eax
movzx eax, word [ebp - 0x18]
mov ecx, edx
cdq
add esi, eax
adc ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x38]
call fcn.00409450
add esp, 8
mov ebx, eax
mov byte [ebp - 4], 0xa
cmp dword [ebx + 0x14], 0x10
jb 0x4016af
mov ebx, dword [ebx]
mov eax, dword [0x451ff0]
mov ecx, 0x451ff0
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x3c], esi
mov byte [ebp - 4], 0xb
test ebx, ebx
je 0x4016ec
test ebx, 0xffff0000
jne 0x4016ec
movzx ebx, bx
mov ecx, ebx
call fcn.00401140
test eax, eax
je 0x4016f8
push ebx
push eax
lea ecx, [ebp - 0x3c]
call fcn.004030f0
jmp 0x4016f5
push ebx
lea ecx, [ebp - 0x3c]
call fcn.00402c90
mov esi, dword [ebp - 0x3c]
mov byte [ebp - 4], 0xd
cmp dword [ebp - 0x24], 0x10
jb 0x40170d
push dword [ebp - 0x38]
call fcn.0040aeac
add esp, 4
push dword [esi - 0xc]
mov dword [ebp - 0x24], 0xf
push esi
mov dword [ebp - 0x28], 0
mov byte [ebp - 0x38], 0
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
test eax, eax
jne 0x401732
call fcn.00402d20
inc dword [edi + 8]
add esi, 0xfffffff0
mov dword [edi + 0x50], eax
mov byte [ebp - 4], 8
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x401756
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040aeb1
mov esp, ebp
pop ebp
ret