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 [0x4cc5a8]
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.004021c4
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.0040245e
push esi
push dword [ebp + 8]
push dword [esp + 0x10]
push edi
push 1
push eax
call fcn.00402b6c
add esp, 0x18
mov esi, eax
test esi, esi
js 0x401684
lea ecx, [esp + 0x10]
call fcn.004021d6
mov ecx, dword [esp + 0xa8]
xor ecx, ebp
call fcn.004465ed
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
test ebx, ebx
sete bl
mov eax, dword [0x5b8d5c]
mov ecx, dword [0x5b90e4]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 8]
jg 0x401890
mov eax, dword [0x5b8d58]
test eax, eax
je 0x401663
push 0x481160
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401663
mov eax, dword [0x4cc57c]
movups xmm0, xmmword [eax - 0x10]
movaps xmmword [esp + 0x30], xmm0
mov eax, dword [0x4cc590]
or eax, dword [0x4cc594]
jne 0x4018d3
xor eax, eax
mov dword [0x4cc598], eax
mov dword [0x4cc59c], eax
lea edi, [esp + 0x30]
push 0x4cc590
push 0x4cc578
push 0x401ec8
push edi
call dword [sym.imp.ADVAPI32.dll_EventRegister]
test eax, eax
jne 0x401663
mov eax, dword [0x4cc57c]
movzx ecx, word [eax]
push ecx
push eax
push 2
push dword [0x4cc594]
push dword [0x4cc590]
call dword [sym.imp.ADVAPI32.dll_EventSetInformation]
cmp dword [0x4cc578], 3
jb 0x401864
test byte [0x4cc585], 0x40
je 0x401864
mov eax, 0x4000
not eax
and eax, dword [0x4cc58c]
or eax, dword [0x4cc588]
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 [0x4cc57c]
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], 0x493424
mov dword [esp + 0x48], 0x5f
xor eax, eax
inc eax
mov dword [esp + 0x4c], eax
mov eax, str.ETW0
mov ebx, 0x4934c8
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 [0x4cc594]
push dword [0x4cc590]
call dword [sym.imp.ADVAPI32.dll_EventWriteTransfer]
mov eax, dword [0x4cc590]
mov ecx, dword [0x4cc594]
xor edx, edx
mov dword [0x4cc578], edx
mov dword [0x4cc590], edx
mov dword [0x4cc594], edx
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_EventUnregister]
jmp 0x401663
push 0x5b8d5c
call fcn.00446c10
add esp, 4
cmp dword [0x5b8d5c], 0xffffffff
jne 0x4016aa
push 0x800
push 0
push 0x481146
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [0x5b8d58], eax
push 0x5b8d5c
call fcn.00446bc6
add esp, 4
jmp 0x4016aa
mov ecx, 5
int 0x29