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

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 0x8c
cmp eax, 3
ja case.0x5af7ff.1
jmp dword [eax*4 + 0x5afb34]
mov eax, 0x5aee50
jmp 0x5af820
mov eax, 0x5b0c40
jmp 0x5af820
mov eax, 0x5b0d80
jmp 0x5af820
mov eax, 0x5afe70
push ebx
push ebp
push esi
push edi
push dword [esp + 0xa4]
lea ecx, [esp + 0x70]
mov dword [esp + 0x28], eax
call fcn.005adf80
push dword [esp + 0xa8]
lea ecx, [esp + 0x88]
call fcn.005adf80
mov cl, byte [esp + 0x80]
mov eax, dword [esp + 0x7c]
mov edi, dword [esp + 0x94]
mov ebx, dword [esp + 0x90]
mov ebp, dword [esp + 0x78]
mov byte [esp + 0x12], cl
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x2c], ecx
mov cl, byte [esp + 0x98]
mov byte [esp + 0x13], cl
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x18], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x14], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x30], ecx
xor edx, edx
xor ecx, ecx
cmp ebx, ebp
jle 0x5af8cd
mov edx, dword [esp + 0x1c]
mov esi, ebp
cmp eax, ebx
jg 0x5af8c7
mov edi, eax
jmp 0x5af8ee
mov ebp, ebx
mov edi, ebx
jmp 0x5af8ee
mov ecx, dword [esp + 0x20]
jge 0x5af8db
mov esi, ebx
cmp edi, ebp
jle 0x5af8ee
jmp 0x5af8e8
mov edx, dword [esp + 0x1c]
mov esi, ebp
cmp eax, edi
mov ebp, eax
cmovg ebp, edi
mov edi, ebp
mov dword [esp + 0x28], ebp
mov ebx, dword [esp + 0xa0]
mov eax, dword [ebx + 0xc]
cmp esi, eax
jge 0x5afb29
cmp edi, eax
cmovg edi, eax
test edx, edx
jne 0x5af985
test ecx, ecx
jne 0x5af985
mov eax, dword [ebx + 8]
sub eax, dword [ebx]
mov ebx, edi
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0xa0]
sub ebx, dword [eax + 4]
mov esi, dword [eax + 0x1c]
dec ebx
cmp ebx, dword [eax + 0x20]
je 0x5af94c
push 1
mov ecx, eax
mov dword [eax + 0x20], ebx
call fcn.005af0b0
mov esi, eax
mov eax, dword [esp + 0xa0]
mov dword [esi], ebx
mov dword [esi + 4], 0
mov dword [eax + 0x1c], esi
mov ebx, dword [esi + 4]
neg ebx
mov eax, dword [esi + 8]
mov dword [esp + 0x54], eax
je 0x5af96d
push ebx
push 0
push eax
call fcn.005ae2a0
mov eax, dword [esp + 0x60]
add esp, 0xc
add dword [esi + 4], ebx
mov ebx, dword [esp + 0x3c]
push ebx
push 0
push eax
call fcn.005ae2a0
add esp, 0xc
add dword [esi + 4], ebx
jmp 0x5afa34
cmp esi, dword [ebx + 4]
jl 0x5afa34
test edx, edx
mov dword [esp + 0x40], edx
mov eax, ebx
cmovne eax, dword [esp + 0xa4]
mov esi, dword [eax]
mov eax, dword [eax + 8]
mov dword [esp + 0x44], esi
mov dword [esp + 0x4c], eax
je 0x5af9c4
movzx eax, byte [edx]
add eax, esi
mov byte [esp + 0x50], 0
mov dword [esp + 0x48], eax
mov al, byte [edx + 1]
mov byte [esp + 0x51], al
jmp 0x5af9d3
mov word [esp + 0x50], 1
mov dword [esp + 0x48], SysReAllocString
test ecx, ecx
mov dword [esp + 0x58], ecx
mov eax, ebx
cmovne eax, dword [esp + 0xa8]
mov edx, dword [eax]
mov eax, dword [eax + 8]
mov dword [esp + 0x5c], edx
mov dword [esp + 0x64], eax
je 0x5afa09
movzx eax, byte [ecx]
add eax, edx
mov byte [esp + 0x68], 0
mov dword [esp + 0x60], eax
mov al, byte [ecx + 1]
mov byte [esp + 0x69], al
jmp 0x5afa18
mov word [esp + 0x68], 1
mov dword [esp + 0x60], SysReAllocString
push ebx
push dword [esp + 0x28]
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x4c]
push eax
lea eax, [edi - 1]
push eax
push ebx
call fcn.005afb50
add esp, 0x18
mov eax, dword [esp + 0x18]
cmp edi, eax
jne 0x5afa8a
cmp byte [esp + 0x12], 0
jne 0x5afa82
mov edx, dword [esp + 0x2c]
lea ecx, [edx + 8]
cmp ecx, dword [esp + 0x70]
jb 0x5afa68
mov eax, SysReAllocString
mov byte [esp + 0x12], 1
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0
jmp 0x5afa82
mov eax, dword [ecx]
sub eax, dword [edx]
add dword [esp + 0x18], eax
mov eax, dword [ecx + 4]
sub eax, dword [edx + 4]
add dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x2c], ecx
mov ebp, dword [esp + 0x34]
mov dword [esp + 0x34], eax
cmp edi, dword [esp + 0x14]
jne 0x5afb0b
cmp byte [esp + 0x13], 0
jne 0x5afaf9
mov edx, dword [esp + 0x30]
lea ecx, [edx + 8]
cmp ecx, dword [esp + 0x88]
jb 0x5afacb
mov ebx, dword [esp + 0x38]
mov edi, SysReAllocString
mov byte [esp + 0x13], 1
mov dword [esp + 0x14], edi
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], ebx
mov dword [esp + 0x38], edi
jmp 0x5afb13
mov eax, dword [ecx]
sub eax, dword [edx]
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x38]
add edi, eax
mov eax, dword [ecx + 4]
sub eax, dword [edx + 4]
add dword [esp + 0x20], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], edi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x38], edi
jmp 0x5afb13
mov ebx, dword [esp + 0x38]
mov edi, dword [esp + 0x14]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x38], edi
jmp 0x5afb13
mov ebx, dword [esp + 0x28]
mov edi, dword [esp + 0x14]
cmp byte [esp + 0x12], 0
je 0x5af8b1
cmp byte [esp + 0x13], 0
je 0x5af8b1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8c
ret