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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa3c
mov eax, dword [0x434014]
xor eax, esp
mov dword [esp + 0xa38], eax
cmp byte [0x4352f9], 0
mov eax, dword [ebp + 8]
push ebx
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0xc]
push esi
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [esp + 0x24], eax
je 0x417e5f
mov ebx, dword [0x4352f0]
mov eax, ebx
mov ecx, dword [0x4352f4]
or eax, ecx
mov dword [esp + 0x20], ecx
je 0x417e5f
xor eax, eax
push eax
push 4
pop esi
push esi
push 3
mov dword [esp + 0x28], eax
pop eax
push eax
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_EventProviderEnabled]
test al, al
je 0x417e5f
mov edx, dword [ebp + 0x1c]
lea edi, [esp + 0x30]
xor eax, eax
stosd dword es:[edi], eax
push 3
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
pop eax
mov word [esp + 0x30], ax
mov byte [esp + 0x34], al
xor eax, eax
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], eax
push 2
pop edi
test edx, edx
jne 0x417d04
mov dword [esp + 0x40], 0x40cad4
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], edi
jmp 0x417d30
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, edi
cmp ax, word [esp + 0x1c]
jne 0x417d09
sub ecx, esi
mov dword [esp + 0x40], edx
sar ecx, 1
xor eax, eax
mov dword [esp + 0x44], eax
lea eax, [ecx*2 + 2]
mov dword [esp + 0x48], eax
xor eax, eax
push 0x800
push eax
mov dword [esp + 0x54], eax
lea esi, [esp + 0x58]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x248]
push eax
mov dword [esp + 0x24], 4
call fcn.00419ee0
add esp, 0xc
lea eax, [esp + 0xc]
push eax
push ecx
lea eax, [esp + 0x248]
push eax
mov eax, dword [ebp + 0x18]
inc eax
push eax
call fcn.00417b85
test eax, eax
js 0x417e30
movzx ecx, word [esp + 0xc]
lea eax, [esp + 0xc]
mov dword [esp + 0x50], eax
xor eax, eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x240]
mov esi, eax
mov dword [esp + 0x58], edi
mov edx, eax
lea esi, [esi + ecx*4]
cmp edx, esi
jae 0x417dd0
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
add edx, dword [eax]
adc ecx, 0
add eax, 4
cmp eax, esi
jb 0x417db7
mov dword [esp + 0x14], ecx
movzx ecx, word [esp + 0xc]
mov dword [esp + 0x10], edx
lea eax, [esp + 0x10]
mov dword [esp + 0x68], 8
mov dword [esp + 0x60], eax
lea esi, [esp + 0x90]
lea eax, [esp + 0x18]
mov dword [esp + 0x78], edi
mov dword [esp + 0x70], eax
xor edx, edx
lea eax, [esp + 0x240]
mov dword [esp + 0x64], edx
mov dword [esp + 0x80], eax
movzx eax, word [esp + 0x18]
imul eax, ecx
mov dword [esp + 0x6c], edx
mov dword [esp + 0x74], edx
mov dword [esp + 0x7c], edx
mov dword [esp + 0x84], edx
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], edx
lea eax, [esp + 0x40]
push eax
sub esi, eax
lea eax, [esp + 0x34]
sar esi, 4
push esi
push eax
push dword [esp + 0x2c]
push ebx
call dword [sym.imp.ADVAPI32.dll_EventWrite]
push dword [ebp + 0x14]
push dword [esp + 0x28]
push dword [esp + 0x30]
push dword [esp + 0x38]
call fcn.00417e76
mov ecx, dword [esp + 0xa44]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00418af8
mov esp, ebp
pop ebp
ret 0x18