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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x168
movzx eax, byte [edx + 0x20]
mov dword [esp + 0x18], ecx
test eax, eax
je 0x4b8a02
cmp eax, 3
jne 0x4b8f53
mov esi, dword [edx + 0x14]
mov ebx, dword [edx + 0x18]
jmp 0x4b8a1c
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov esi, dword [edx + 8]
xor ebx, ebx
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], ecx
mov dword [edx + 0x14], esi
and dword [edx + 0x18], 0
mov dword [edx + 0x1c], esi
mov ecx, esi
mov dword [esp + 0x1c], edx
sub ecx, ebx
test ecx, ecx
je 0x4b8e9d
cmp esi, ebx
je 0x4b8da4
mov edi, dword [edx + 0xc]
mov dword [esp + 0x28], ecx
cmp byte [edi + 0x1d], 0
jne 0x4b8d90
mov ecx, dword [edi + 0x18]
add ecx, 0x10
call fcn.0051a10e
cmp byte [edi + 0x1c], 0
mov ecx, edi
mov dword [esp + 0x10], edi
mov dword [esp + 8], eax
mov byte [esp + 3], dl
je 0x4b8a81
lea ecx, [eax + 0x10]
call fcn.005223a3
mov dl, byte [esp + 3]
xor ecx, ecx
test al, al
push 0xb
pop edi
mov eax, dword [esp + 8]
jne 0x4b8d61
mov eax, dword [esp + 0x10]
mov edi, dword [eax]
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
and dword [eax + 4], 0
and dword [eax], 0
or ecx, edi
je 0x4b8ac4
mov ecx, dword [eax + 0xc]
mov edi, edx
mov eax, edx
mov dword [esp + 4], edx
mov dl, byte [esp + 3]
mov dword [esp + 0x14], 0
shrd edi, ecx, 8
shr ecx, 8
xor ebx, ebx
xor esi, esi
mov dword [esp + 0xc], ecx
inc ebx
jmp 0x4b8cd5
mov ecx, dword [esp + 8]
lea edi, [esp + 0x110]
lea edx, [ecx + 0x10]
mov ecx, edi
mov dword [esp + 0x2c], edx
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.005314fc
pop eax
pop ecx
lea ecx, [esp + 0x40]
mov edx, edi
push 1
call fcn.005306a6
pop eax
mov edi, dword [esp + 0x40]
mov cl, byte [esp + 0x44]
cmp edi, 4
jne 0x4b8b20
xor eax, eax
test cl, cl
sete al
push 0xa
pop edi
sub edi, eax
mov ecx, 0
sbb ecx, ecx
mov eax, dword [esp + 8]
mov dl, byte [esp + 3]
jmp 0x4b8d61
push 0x2b
lea eax, [esp + 0x49]
push eax
lea eax, [esp + 0xc5]
push eax
mov byte [esp + 0x10], cl
call fcn.00616830
add esp, 0xc
mov al, byte [esp + 4]
mov dword [esp + 0xb8], edi
mov dword [esp + 0x24], 0
mov dword [esp + 0x14], 0
mov byte [esp + 0xbc], al
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x10]
mov eax, dword [eax + 0x1c]
mov dword [esp + 0xc], ecx
mov dword [esp + 4], eax
mov edi, esi
sub edi, ebx
je 0x4b8c26
lea ecx, [esp + 0x40]
lea edx, [esp + 0xb8]
push edi
call fcn.0052fdf0
pop eax
mov eax, dword [esp + 0x40]
or eax, dword [esp + 0x44]
jne 0x4b8c3f
cmp dword [esp + 0x48], 0
je 0x4b8c3f
lea eax, [esp + 0x45]
movsd xmm1, qword [eax + 0xb]
movsd xmm0, qword [eax + 3]
movsd qword [esp + 0x78], xmm1
movsd xmm1, qword [eax + 0x13]
movsd qword [esp + 0x70], xmm0
movsd qword [esp + 0x80], xmm1
mov eax, dword [esp + 0x78]
cmp edi, eax
jb 0x4b8f0a
mov edi, eax
add edi, ebx
jb 0x4b8f37
cmp edi, esi
ja 0x4b8f45
add ebx, dword [esp + 0xc]
push eax
push dword [esp + 0x78]
push ebx
call fcn.00616830
add esp, 0xc
cmp dword [esp + 4], edi
mov eax, dword [esp + 0x1c]
jae 0x4b8c0d
mov dword [eax + 0x1c], edi
mov dword [esp + 4], edi
lea ecx, [esp + 0x70]
mov dword [eax + 0x18], edi
call fcn.00489f6a
mov al, 1
mov ebx, edi
mov dword [esp + 0x14], eax
jmp 0x4b8b6f
mov dword [esp + 4], eax
mov dword [esp + 0x20], 0
mov dword [esp + 0xc], 0
push 2
pop ebx
jmp 0x4b8ca3
lea ecx, [esp + 0x30]
lea edx, [esp + 0x40]
call fcn.005223c4
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov ebx, eax
xor eax, 2
or eax, ecx
jne 0x4b8c82
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], 0
mov dword [esp + 4], eax
mov dword [esp + 0xc], 0
push 3
pop ebx
mov dword [esp + 0x24], 0
jmp 0x4b8ca3
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov eax, ecx
mov dword [esp + 4], ecx
shrd ecx, edx, 8
shr edx, 8
mov dword [esp + 0x20], ecx
mov dword [esp + 0xc], edx
push 0xc
pop ecx
lea eax, [esp + 0x40]
lea esi, [esp + 0xb8]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
call fcn.005304d0
test al, al
je 0x4b8cc9
mov ecx, dword [esp + 0x2c]
call fcn.0051a436
mov dl, byte [esp + 3]
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
mov eax, ebx
add eax, 0xfffffffe
adc esi, 0xffffffff
push 2
pop ecx
cmp eax, ecx
cmovae eax, ecx
test esi, esi
cmovne eax, ecx
cmp eax, 2
je 0x4b8d0c
mov ecx, dword [esp + 4]
cmp eax, 1
jne 0x4b8d50
mov eax, dword [esp + 0x10]
and cl, 1
mov byte [eax + 0x1d], 1
mov byte [esp + 0x90], cl
jmp 0x4b8d58
mov eax, dword [esp + 4]
test ebx, ebx
je 0x4b8d45
mov esi, dword [esp + 0xc]
movzx eax, al
shld esi, edi, 8
shl edi, 8
or eax, edi
test byte [esp + 0x14], 1
je 0x4b8df0
mov ecx, dword [esp + 0x10]
and dword [ecx + 4], 0
mov dword [ecx], 1
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], esi
jmp 0x4b8d50
test byte [esp + 0x14], 1
je 0x4b8e0f
mov byte [esp + 0x90], 1
xor ecx, ecx
push 0xc
pop edi
mov eax, dword [esp + 8]
and dl, 1
mov dword [esp + 4], ecx
mov ecx, eax
movzx edx, dl
call fcn.004bd038
mov ecx, dword [esp + 4]
mov eax, edi
xor eax, 0xd
or eax, ecx
je 0x4b8ecb
mov edx, dword [esp + 0x1c]
mov eax, edi
xor eax, 0xc
or eax, ecx
jne 0x4b8dbd
push 0xa
pop ecx
lea edi, [esp + 0xe8]
lea esi, [esp + 0x40]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x28]
mov esi, dword [edx + 0x14]
mov ebx, dword [edx + 0x18]
mov eax, esi
sub eax, ebx
cmp eax, ecx
mov ecx, eax
jne 0x4b8a24
jmp 0x4b8ea1
push 0xa
pop ecx
mov eax, edi
lea edi, [esp + 0x40]
lea esi, [esp + 0x90]
rep movsd dword es:[edi], dword [esi]
mov ebx, eax
and al, 0xf
cmp al, 0xc
push 0xa
pop ecx
lea edi, [esp + 0xe8]
lea esi, [esp + 0x40]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x28]
je 0x4b8da4
jmp 0x4b8ed1
mov ecx, dword [esp + 0x10]
mov byte [ecx + 0x1d], 1
xor ecx, ecx
mov dword [esp + 0x94], esi
mov dword [esp + 0x90], eax
push 7
jmp 0x4b8d5c
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x1140]
xor eax, 7
or eax, dword [esi + 0x1144]
jne 0x4b8e70
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
add esi, 0x1190
mov edi, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
mov dword [esp + 4], eax
mov eax, dword [ecx]
push dword [ecx + 4]
call dword [eax]
add esp, 4
mov ebx, edx
mov ecx, esi
mov edx, edi
push ebx
push eax
push dword [esp + 0xc]
call fcn.0051bde6
add esp, 0xc
xor ecx, ecx
test eax, eax
je 0x4b8e68
push edx
call dword [eax + 0xc]
xor ecx, ecx
add esp, 4
push 0xd
pop edi
jmp 0x4b8b13
mov edx, esi
lea ecx, [esp + 0x88]
add edx, 0x1140
call fcn.0049e3e4
mov edi, dword [esp + 0x88]
mov ecx, dword [esp + 0x8c]
mov dl, byte [esp + 3]
mov eax, esi
jmp 0x4b8d61
push 0xd
jmp 0x4b8ea3
push 0xc
pop ebx
mov edi, dword [esp + 0x18]
xor eax, eax
mov dword [edi], ebx
mov dword [edi + 4], eax
add edi, 8
push 0xa
pop ecx
lea esi, [esp + 0x120]
mov al, 1
rep movsd dword es:[edi], dword [esi]
mov byte [edx + 0x20], al
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, dword [esp + 0x1c]
jmp 0x4b8edb
mov eax, ebx
and eax, 0xf
cmp eax, 0xd
jne 0x4b8eed
mov eax, dword [esp + 0x18]
and dword [eax + 4], 0
mov dword [eax], 0xe
mov al, 3
jmp 0x4b8ec0
push 0xa
pop ecx
lea edi, [esp + 0x120]
lea esi, [esp + 0xe8]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 4]
jmp 0x4b8eaa
lea ecx, [esp + 0x14c]
mov edx, 0x7664a8
mov dword [ecx], str.buf.len___must_fit_in_remaining__
mov dword [ecx + 4], 1
and dword [ecx + 0x10], 0
mov dword [ecx + 8], 0x7b0e68
and dword [ecx + 0xc], 0
call fcn.0062d360
mov ecx, ebx
mov edx, edi
push 0x7664a8
call fcn.0062d670
mov ecx, edi
mov edx, esi
push 0x7664a8
call fcn.0062d450
push 0x23
pop edx
mov ecx, str._async_fn__resumed_after_completion
push 0x72cddc
call fcn.0062d4b0