Function at 0x4015c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xb0
mov dword [esp + 8], edx
mov esi, ecx
mov eax, dword [0x5ef0d4]
xor eax, ebp
mov dword [esp + 0xa8], eax
xor eax, eax
dec eax
lea ebx, [esp + 0x10]
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov ecx, ebx
call fcn.004022a0
test esi, esi
je 0x40161c
cmp word [esi], 0
je 0x40161c
xor edi, edi
inc edi
mov dword [esp + 4], 0
push ebx
push esi
call fcn.00401125
add esp, 8
mov ebx, eax
jmp 0x401637
mov ecx, dword [ebp + 0xc]
xor edi, edi
lea edx, [esp + 0x10]
push edi
push edi
call fcn.00401a79
add esp, 8
mov ebx, eax
mov al, 1
mov dword [esp + 4], eax
mov esi, ebx
test ebx, ebx
jne 0x40165f
mov esi, dword [ebp + 0x10]
lea ecx, [esp + 0x10]
call fcn.00402544
push esi
push dword [ebp + 8]
push dword [esp + 0x10]
push edi
push 1
push eax
call fcn.00402c50
add esp, 0x18
mov esi, eax
test esi, esi
js 0x401684
lea ecx, [esp + 0x10]
call fcn.004022b2
mov ecx, dword [esp + 0xa8]
xor ecx, ebp
call fcn.00565e42
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
test ebx, ebx
sete bl
mov eax, dword [0x5f0744]
mov ecx, dword [0x5f3980]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 8]
jg 0x40187d
mov eax, dword [0x5f0740]
test eax, eax
je 0x401663
push 0x59aa90
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401663
mov eax, dword [0x5ea2ac]
movups xmm0, xmmword [eax - 0x10]
lea edi, [esp + 0x30]
movaps xmmword [edi], xmm0
xor eax, eax
mov dword [0x5ea2c8], eax
mov dword [0x5ea2cc], eax
push 0x5ea2c0
push 0x5ea2a8
push 0x401eae
push edi
call dword [sym.imp.ADVAPI32.dll_EventRegister]
test eax, eax
jne 0x401663
mov eax, dword [0x5ea2ac]
movzx ecx, word [eax]
push ecx
push eax
push 2
push dword [0x5ea2c4]
push dword [0x5ea2c0]
call dword [sym.imp.ADVAPI32.dll_EventSetInformation]
cmp dword [0x5ea2a8], 3
jb 0x401851
test byte [0x5ea2b5], 0x40
je 0x401851
mov eax, 0x4000
not eax
and eax, dword [0x5ea2bc]
or eax, dword [0x5ea2b8]
jne 0x401851
xor ecx, ecx
lea eax, [esp + 0x24]
mov edx, dword [esp + 4]
mov byte [eax], dl
lea edx, [esp + 0x20]
mov byte [edx], bl
lea ebx, [esp + 0x28]
mov dword [ebx + 4], ecx
mov dword [ebx], 0x1000000
mov dword [esp + 0x80], ebx
lea edx, [esp + 0x1c]
mov dword [edx], esi
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], 8
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x70], eax
xor eax, eax
inc eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x64], ecx
lea ebx, [esp + 0x20]
mov dword [esp + 0x60], ebx
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x50], edx
mov dword [esp + 0x58], 4
mov dword [esp + 0x5c], ecx
lea edx, [esp + 0x98]
mov dword [edx], 0xb000000
mov ebx, 2
mov dword [edx + 4], ebx
mov eax, 0x4000
mov dword [edx + 0xc], eax
mov dword [edx + 8], ecx
mov eax, dword [0x5ea2ac]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], eax
movzx eax, word [eax]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x40], 0x5e530c
mov dword [esp + 0x48], 0x5f
xor eax, eax
inc eax
mov dword [esp + 0x4c], eax
mov eax, str.ETW0
mov ebx, 0x5e53b0
sub ebx, eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 0xc], ebx
push edi
push 6
push ecx
push ecx
push edx
push dword [0x5ea2c4]
push dword [0x5ea2c0]
call dword [sym.imp.ADVAPI32.dll_EventWriteTransfer]
mov eax, dword [0x5ea2c0]
mov ecx, dword [0x5ea2c4]
xor edx, edx
mov dword [0x5ea2a8], edx
mov dword [0x5ea2c0], edx
mov dword [0x5ea2c4], edx
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_EventUnregister]
jmp 0x401663
push 0x5f0744
call fcn.00566696
add esp, 4
cmp dword [0x5f0744], 0xffffffff
jne 0x4016aa
push 0x800
push 0
push 0x59aa76
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [0x5f0740], eax
push 0x5f0744
call fcn.0056664c
add esp, 4
jmp 0x4016aa