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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x1c0
mov esi, dword [ebp + 0xc]
mov eax, dword [0x597010]
xor eax, ebp
mov dword [esp + 0x1b8], eax
mov ebx, dword [0x5a8214]
cmp ebx, 1
ja 0x48785b
push 0x5a8214
call fcn.00473460
add esp, 4
test al, al
je 0x487864
mov al, 1
xchg byte [0x5a8210], al
test al, 1
jne 0x4878e3
call fcn.004870a0
mov ebx, 0x5a81e8
mov dword [0x5a8214], ebx
push 0
push 0x488c70
call fcn.0047b5e0
add esp, 8
mov ecx, esi
call fcn.004874a0
jmp 0x487879
mov ebx, dword [0x5a8214]
mov ecx, esi
call fcn.004874a0
test ebx, ebx
je 0x487a66
mov esi, dword [ebx + 8]
cmp dword [esi], 0
je 0x487a66
mov ecx, eax
or ecx, edx
je 0x4878b3
mov ecx, dword [esi + 8]
and ecx, eax
mov edi, dword [esi + 0xc]
and edi, edx
or edi, ecx
je 0x487a66
mov ecx, eax
not ecx
and ecx, dword [esi + 0x10]
mov edi, edx
not edi
and edi, dword [esi + 0x14]
or edi, ecx
jne 0x487a66
mov dword [esp + 4], ebx
movzx ebx, byte [ebp + 8]
mov word [esp + 0x2e], 0xffff
movsx ecx, bl
add ecx, 0xffffffbe
cmp ecx, 0x32
ja case.0x4878d2.71
mov esi, str.Begin
jmp dword [ecx*4 + 0x584b20]
mov esi, str.Phase_Counter
jmp case.0x4878d2.66
mov dword [0x5a8214], 0
mov ecx, esi
call fcn.004874a0
jmp 0x487a66
mov esi, str.Phase_Delete_Object
jmp case.0x4878d2.66
mov esi, 0x57d3fd
jmp case.0x4878d2.66
mov esi, str.Async_End
jmp case.0x4878d2.66
mov byte [esp + 0x2e], bl
mov byte [esp + 0x2f], 0
lea esi, [esp + 0x2e]
jmp case.0x4878d2.66
mov esi, str.Instant
jmp case.0x4878d2.66
mov esi, str.Phase_Metadata
jmp case.0x4878d2.66
mov esi, str.Phase_Create_Object
jmp case.0x4878d2.66
mov esi, str.Phase_Snapshot_Object
jmp case.0x4878d2.66
mov esi, str.Phase_Sample
jmp case.0x4878d2.66
mov esi, str.Async_Begin
jmp case.0x4878d2.66
mov esi, str.Async_Step_Into
jmp case.0x4878d2.66
mov esi, str.Complete
jmp case.0x4878d2.66
mov esi, str.Nestable_Async_Begin
jmp case.0x4878d2.66
mov esi, str.Nestable_Async_End
jmp case.0x4878d2.66
mov esi, str.Phase_Flow_End
jmp case.0x4878d2.66
mov esi, str.Nestable_Async_Instant
jmp case.0x4878d2.66
mov esi, str.Async_Step_Past
jmp case.0x4878d2.66
mov esi, str.Phase_Flow_Begin
jmp case.0x4878d2.66
mov esi, str.Phase_Flow_Step
mov edi, dword [ebp + 0x10]
pxor xmm0, xmm0
movdqa xmmword [esp + 0x40], xmm0
movdqa xmmword [esp + 0x30], xmm0
mov dword [esp + 0x50], 0
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
je 0x487a03
movzx ebx, byte [ecx]
test ebx, ebx
je 0x487a03
mov dword [esp + 8], ebx
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], esi
lea ebx, [ecx + 0x10]
xor esi, esi
lea edi, [esp + 0x30]
mov edx, ecx
jmp 0x4879e1
inc esi
add edi, 0xc
add ebx, 8
cmp dword [esp + 8], esi
je 0x487a7c
movzx eax, byte [edx + esi + 1]
mov ecx, eax
and cl, 0xfe
cmp cl, 8
je 0x4879d0
movzx eax, al
mov ecx, ebx
push edi
push 0
push eax
call fcn.004b9970
mov edx, dword [ebp + 0x1c]
jmp 0x4879d0
mov ecx, dword [esp + 4]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x60], str.Phase
mov dword [esp + 0x64], esi
mov dword [esp + 0xb0], 0xb000000
mov dword [esp + 0xb4], 0
mov dword [esp + 0xbc], edx
mov dword [esp + 0xb8], eax
lea eax, [esp + 0x60]
lea esi, [esp + 0xb0]
mov edx, edi
push eax
push esi
call fcn.00487fc0
add esp, 8
cmp byte [esp + 0x53], 0
js 0x487a96
cmp byte [esp + 0x47], 0
js 0x487aa9
cmp byte [esp + 0x3b], 0
js 0x487abc
mov ecx, dword [esp + 0x1b8]
xor ecx, ebp
call fcn.00528e13
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esp + 8]
cmp al, 1
je 0x487aca
cmp eax, 2
jne 0x487ade
cmp byte [esp + 0x47], 0
jns 0x487ae8
mov edi, dword [esp + 0x3c]
jmp 0x487aec
push dword [esp + 0x48]
call fcn.00528424
add esp, 4
cmp byte [esp + 0x47], 0
jns 0x487a5f
push dword [esp + 0x3c]
call fcn.00528424
add esp, 4
cmp byte [esp + 0x3b], 0
jns 0x487a66
push dword [esp + 0x30]
call fcn.00528424
add esp, 4
jmp 0x487a66
mov eax, dword [esp + 4]
mov ebx, dword [eax + 8]
cmp byte [esp + 0x3b], 0
jns 0x487b0b
mov eax, dword [esp + 0x30]
jmp 0x487b0f
call fcn.0047b030
jmp 0x487a51
lea edi, [esp + 0x3c]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 4]
mov ebx, dword [eax + 8]
cmp byte [esp + 0x3b], 0
jns 0x487d34
mov eax, dword [esp + 0x30]
jmp 0x487d38
lea eax, [esp + 0x30]
mov dword [esp + 8], eax
mov edx, dword [esp + 0xc]
mov eax, dword [ebp + 0x1c]
mov edi, dword [eax + 4]
mov dword [esp + 0x18], 0xb000000
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], edx
mov esi, dword [esp + 0x10]
mov dword [esp + 0x24], esi
cmp dword [ebx], 0
je 0x487a51
mov eax, edx
or eax, esi
je 0x487b6c
mov eax, dword [ebx + 8]
and eax, edx
mov ecx, dword [ebx + 0xc]
and ecx, esi
or ecx, eax
je 0x487a51
not edx
and edx, dword [ebx + 0x10]
not esi
and esi, dword [ebx + 0x14]
or esi, edx
jne 0x487a51
mov dword [esp + 4], edi
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x1a0], xmm0
movdqa xmmword [esp + 0x190], xmm0
movdqa xmmword [esp + 0x180], xmm0
movdqa xmmword [esp + 0x170], xmm0
movdqa xmmword [esp + 0x160], xmm0
movdqa xmmword [esp + 0x150], xmm0
movdqa xmmword [esp + 0x140], xmm0
movdqa xmmword [esp + 0x130], xmm0
movdqa xmmword [esp + 0x120], xmm0
movdqa xmmword [esp + 0x110], xmm0
movdqa xmmword [esp + 0x100], xmm0
movdqa xmmword [esp + 0xf0], xmm0
movdqa xmmword [esp + 0xe0], xmm0
movdqa xmmword [esp + 0xd0], xmm0
movdqa xmmword [esp + 0xc0], xmm0
movdqa xmmword [esp + 0xb0], xmm0
mov byte [esp + 0xb2], 0
mov edi, dword [ebp + 0x10]
push edi
call fcn.005429e0
add esp, 4
mov esi, eax
inc esi
mov ax, 0xffff
cmp esi, 0xfd
ja 0x487c3e
lea eax, [esp + 0xb3]
push esi
push edi
push eax
call fcn.0052bc90
add esp, 0xc
add esi, 3
mov eax, esi
mov word [esp + 0x2c], ax
lea esi, [esp + 0x2c]
lea edi, [esp + 0xb0]
mov ecx, ebx
push str.Phase
push 0
push 2
push esi
push edi
call fcn.004ba920
mov ecx, ebx
push dword [esp + 4]
push 0
push 2
push esi
push edi
call fcn.004ba920
mov esi, dword [esp + 0x14]
push esi
call fcn.005429e0
add esp, 4
inc eax
mov dword [esp + 0x80], esi
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], 0
mov esi, dword [esp + 8]
push esi
call fcn.005429e0
add esp, 4
inc eax
mov dword [esp + 0x90], esi
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], 0
movzx eax, word [esp + 0x2c]
cmp eax, 0x100
ja 0x487a51
mov word [esp + 0xb0], ax
lea ecx, [ebx + 0x28]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], 0
movzx ecx, word [ebx + 4]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], 2
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], 1
lea eax, [esp + 0x60]
lea ecx, [esp + 0x18]
push eax
push 4
jmp 0x487fa2
lea eax, [esp + 0x30]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax + 4]
mov dword [esp + 0xc], ecx
mov eax, dword [eax + 8]
mov dword [esp + 4], eax
mov dword [esp + 0x18], 0xb000000
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], edx
mov esi, dword [esp + 0x10]
mov dword [esp + 0x24], esi
cmp dword [ebx], 0
je 0x487a51
mov eax, edx
or eax, esi
je 0x487d9c
mov eax, dword [ebx + 8]
and eax, edx
mov ecx, dword [ebx + 0xc]
and ecx, esi
or ecx, eax
je 0x487a51
not edx
and edx, dword [ebx + 0x10]
not esi
and esi, dword [ebx + 0x14]
or esi, edx
jne 0x487a51
mov dword [esp + 0x10], edi
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x1a0], xmm0
movdqa xmmword [esp + 0x190], xmm0
movdqa xmmword [esp + 0x180], xmm0
movdqa xmmword [esp + 0x170], xmm0
movdqa xmmword [esp + 0x160], xmm0
movdqa xmmword [esp + 0x150], xmm0
movdqa xmmword [esp + 0x140], xmm0
movdqa xmmword [esp + 0x130], xmm0
movdqa xmmword [esp + 0x120], xmm0
movdqa xmmword [esp + 0x110], xmm0
movdqa xmmword [esp + 0x100], xmm0
movdqa xmmword [esp + 0xf0], xmm0
movdqa xmmword [esp + 0xe0], xmm0
movdqa xmmword [esp + 0xd0], xmm0
movdqa xmmword [esp + 0xc0], xmm0
movdqa xmmword [esp + 0xb0], xmm0
mov byte [esp + 0xb2], 0
mov edi, dword [ebp + 0x10]
push edi
call fcn.005429e0
add esp, 4
mov esi, eax
inc esi
mov ax, 0xffff
cmp esi, 0xfd
ja 0x487e6e
lea eax, [esp + 0xb3]
push esi
push edi
push eax
call fcn.0052bc90
add esp, 0xc
add esi, 3
mov eax, esi
mov word [esp + 0x2c], ax
lea esi, [esp + 0x2c]
lea edi, [esp + 0xb0]
mov ecx, ebx
push str.Phase
push 0
push 2
push esi
push edi
call fcn.004ba920
mov ecx, ebx
push dword [esp + 0xc]
push 0
push 2
push esi
push edi
call fcn.004ba920
mov ecx, ebx
push dword [esp + 4]
push 0
push 2
push esi
push edi
call fcn.004ba920
mov esi, dword [esp + 0x14]
push esi
call fcn.005429e0
add esp, 4
inc eax
mov dword [esp + 0x80], esi
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], 0
mov esi, dword [esp + 8]
push esi
call fcn.005429e0
add esp, 4
inc eax
mov dword [esp + 0x90], esi
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], 0
mov esi, dword [esp + 0x10]
push esi
call fcn.005429e0
add esp, 4
inc eax
mov dword [esp + 0xa0], esi
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], 0
movzx eax, word [esp + 0x2c]
cmp eax, 0x100
ja 0x487a51
mov word [esp + 0xb0], ax
lea ecx, [ebx + 0x28]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], 0
movzx ecx, word [ebx + 4]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], 2
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], 1
lea eax, [esp + 0x60]
lea ecx, [esp + 0x18]
push eax
push 5
push ecx
push dword [ebx + 0x1c]
push dword [ebx + 0x18]
call dword [sym.imp.ADVAPI32.dll_EventWrite]
jmp 0x487a51