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 [0x58bb30]
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.004021dc
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.00401a93
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.00402476
push esi
push dword [ebp + 8]
push dword [esp + 0x10]
push edi
push 1
push eax
call fcn.00402b84
add esp, 0x18
mov esi, eax
test esi, esi
js 0x401684
lea ecx, [esp + 0x10]
call fcn.004021ee
mov ecx, dword [esp + 0xa8]
xor ecx, ebp
call fcn.0052f708
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
test ebx, ebx
sete bl
mov eax, dword [0x6341ac]
mov ecx, dword [0x6345f8]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x401890
mov eax, dword [0x6341a8]
test eax, eax
je 0x401663
push 0x56d360
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401663
mov eax, dword [0x58baf4]
movups xmm0, xmmword [eax - 0x10]
movaps xmmword [esp + 0x30], xmm0
mov eax, dword [0x58bb08]
or eax, dword [0x58bb0c]
jne 0x4018d3
xor eax, eax
mov dword [0x58bb10], eax
mov dword [0x58bb14], eax
lea edi, [esp + 0x30]
push 0x58bb08
push 0x58baf0
push 0x401ed0
push edi
call dword [sym.imp.ADVAPI32.dll_EventRegister]
test eax, eax
jne 0x401663
mov eax, dword [0x58baf4]
movzx ecx, word [eax]
push ecx
push eax
push 2
push dword [0x58bb0c]
push dword [0x58bb08]
call dword [sym.imp.ADVAPI32.dll_EventSetInformation]
cmp dword [0x58baf0], 3
jb 0x401864
test byte [0x58bafd], 0x40
je 0x401864
mov eax, 0x4000
not eax
and eax, dword [0x58bb04]
or eax, dword [0x58bb00]
jne 0x401864
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 [0x58baf4]
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], 0x5757e4
mov dword [esp + 0x48], 0x5f
xor eax, eax
inc eax
mov dword [esp + 0x4c], eax
mov eax, str.ETW0
mov ebx, 0x575888
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 [0x58bb0c]
push dword [0x58bb08]
call dword [sym.imp.ADVAPI32.dll_EventWriteTransfer]
mov eax, dword [0x58bb08]
mov ecx, dword [0x58bb0c]
xor edx, edx
mov dword [0x58baf0], edx
mov dword [0x58bb08], edx
mov dword [0x58bb0c], edx
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_EventUnregister]
jmp 0x401663
push 0x6341ac
call fcn.0052ffcb
add esp, 4
cmp dword [0x6341ac], 0xffffffff
jne 0x4016aa
push 0x800
push 0
push 0x56d346
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [0x6341a8], eax
push 0x6341ac
call fcn.0052ff80
add esp, 4
jmp 0x4016aa
mov ecx, 5
int 0x29