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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x80
mov edi, dword [ebp + 0xc]
mov eax, dword [0x7a8498]
xor eax, ebp
mov dword [esp + 0x78], eax
mov ebx, dword [0x7bd010]
cmp ebx, 2
jae 0x4d2230
push 0x7bd010
call fcn.0045f540
add esp, 4
test al, al
je 0x4d223b
mov eax, 1
xchg dword [0x7bd014], eax
xor ebx, ebx
test eax, eax
jne 0x4d2219
mov ebx, 0x7bd018
mov ecx, 0x7bd018
call fcn.004d1b20
push 0
push 0x4d3370
push ebx
push 0x7bd010
call fcn.0045f600
add esp, 0x10
jmp 0x4d2241
push edi
call fcn.004d1e60
add esp, 4
jmp 0x4d2252
mov ebx, dword [0x7bd010]
push edi
call fcn.004d1e60
add esp, 4
test ebx, ebx
je 0x4d23da
mov edi, eax
mov esi, edx
mov ecx, dword [ebx + 8]
push edx
push eax
push 0
call fcn.00598710
test al, al
je 0x4d23da
mov dword [esp + 8], esi
mov edx, dword [ebp + 0x1c]
mov al, byte [ebp + 8]
mov word [esp + 0x4e], 0xffff
movsx ecx, al
add ecx, 0xffffffbe
cmp ecx, 0x32
ja case.0x4d228b.71
mov esi, str.Begin
jmp dword [ecx*4 + 0x7402ac]
mov esi, str.Phase_Counter
jmp case.0x4d228b.66
mov esi, str.Phase_Delete_Object
jmp case.0x4d228b.66
mov esi, 0x73ffce
jmp case.0x4d228b.66
mov esi, str.Async_End
jmp case.0x4d228b.66
lea esi, [esp + 0x4e]
mov byte [esp + 0x4e], al
mov byte [esp + 0x4f], 0
jmp case.0x4d228b.66
mov esi, str.Instant
jmp case.0x4d228b.66
mov esi, str.Phase_Metadata
jmp case.0x4d228b.66
mov esi, str.Phase_Create_Object
jmp case.0x4d228b.66
mov esi, str.Phase_Snapshot_Object
jmp case.0x4d228b.66
mov esi, str.Phase_Sample
jmp case.0x4d228b.66
mov esi, str.Async_Begin
jmp case.0x4d228b.66
mov esi, str.Async_Step_Into
jmp case.0x4d228b.66
mov esi, str.Complete
jmp case.0x4d228b.66
mov esi, str.Nestable_Async_Begin
jmp case.0x4d228b.66
mov esi, str.Nestable_Async_End
jmp case.0x4d228b.66
mov esi, str.Phase_Flow_End
jmp case.0x4d228b.66
mov esi, str.Nestable_Async_Instant
jmp case.0x4d228b.66
mov esi, str.Async_Step_Past
jmp case.0x4d228b.66
mov esi, str.Phase_Flow_Begin
jmp case.0x4d228b.66
mov esi, str.Phase_Flow_Step
mov dword [esp + 0x10], esi
xorps xmm0, xmm0
movaps xmmword [esp + 0x60], xmm0
movaps xmmword [esp + 0x50], xmm0
mov dword [esp + 0x70], 0
test edx, edx
je 0x4d23ed
movzx eax, byte [edx]
test eax, eax
je 0x4d23ed
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], edi
lea edi, [edx + 1]
lea ebx, [edx + 0x10]
lea esi, [esp + 0x50]
mov dword [esp + 0x14], eax
mov edx, eax
jmp 0x4d237e
add esi, 0xc
add edi, 1
add ebx, 8
add edx, 0xffffffff
je 0x4d23a1
movzx eax, byte [edi]
mov ecx, eax
and cl, 0xfe
cmp cl, 8
je 0x4d2370
movzx eax, al
mov ecx, ebx
push esi
push eax
mov dword [esp + 0x14], edx
call fcn.00597c50
mov edx, dword [esp + 0xc]
jmp 0x4d2370
mov eax, dword [esp + 0x14]
test eax, eax
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
je 0x4d23ed
cmp al, 1
je 0x4d2472
cmp al, 2
je 0x4d2486
cmp byte [esp + 0x73], 0
js 0x4d2437
cmp byte [esp + 0x67], 0
js 0x4d244a
cmp byte [esp + 0x5b], 0
js 0x4d2461
mov ecx, dword [esp + 0x78]
xor ecx, ebp
call fcn.006c9121
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, dword [ebx + 8]
lea esi, [esp + 0x44]
mov ecx, esi
push dword [esp + 0x10]
push str.Phase
call fcn.004be290
mov dword [esp + 0x30], 0xb000000
mov dword [esp + 0x34], 0
mov eax, dword [esp + 8]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], edi
lea eax, [esp + 0x30]
mov ecx, ebx
push esi
push eax
push dword [ebp + 0x10]
call fcn.004d25a0
cmp byte [esp + 0x73], 0
jns 0x4d23c8
push dword [esp + 0x68]
call fcn.006c90e6
add esp, 4
cmp byte [esp + 0x67], 0
jns 0x4d23cf
push dword [esp + 0x5c]
call fcn.006c90e6
add esp, 4
cmp byte [esp + 0x5b], 0
jns 0x4d23da
push dword [esp + 0x50]
call fcn.006c90e6
add esp, 4
jmp 0x4d23da
mov eax, dword [ebx + 8]
mov dword [esp + 0xc], eax
cmp byte [esp + 0x5b], 0
jns 0x4d2493
mov eax, dword [esp + 0x50]
jmp 0x4d2497
cmp byte [esp + 0x67], 0
jns 0x4d24fe
mov eax, dword [esp + 0x5c]
jmp 0x4d2502
lea eax, [esp + 0x50]
mov esi, dword [esp + 8]
lea ecx, [esp + 0x44]
push eax
mov eax, dword [ebp + 0x1c]
push dword [eax + 4]
call fcn.004be290
lea ebx, [esp + 0x28]
mov ecx, ebx
push dword [esp + 0x10]
push str.Phase
call fcn.004be290
mov dword [esp + 0x30], 0xb000000
mov dword [esp + 0x34], 0
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], edi
lea eax, [esp + 0x30]
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x44]
push edx
push ebx
push eax
push dword [ebp + 0x10]
call fcn.004d26e0
cmp byte [esp + 0x73], 0
jns 0x4d23c8
jmp 0x4d2437
lea eax, [esp + 0x5c]
mov esi, dword [esp + 8]
mov ecx, dword [ebx + 8]
mov dword [esp + 0xc], ecx
lea ecx, [esp + 0x44]
push eax
mov eax, dword [ebp + 0x1c]
push dword [eax + 8]
call fcn.004be290
cmp byte [esp + 0x5b], 0
jns 0x4d252a
mov eax, dword [esp + 0x50]
jmp 0x4d252e
lea eax, [esp + 0x50]
lea ecx, [esp + 0x28]
push eax
mov eax, dword [ebp + 0x1c]
push dword [eax + 4]
call fcn.004be290
lea ebx, [esp + 0x20]
mov ecx, ebx
push dword [esp + 0x10]
push str.Phase
call fcn.004be290
mov dword [esp + 0x30], 0xb000000
mov dword [esp + 0x34], 0
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], edi
lea eax, [esp + 0x30]
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x44]
push edx
lea edx, [esp + 0x2c]
push edx
push ebx
push eax
push dword [ebp + 0x10]
call fcn.004d2850
cmp byte [esp + 0x73], 0
jns 0x4d23c8
jmp 0x4d2437