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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 8]
cmp eax, dword [ecx + 8]
jbe 0x5afd62
sub esp, 0x88
mov eax, dword [esp + 0x94]
cmp eax, 3
jl 0x5af995
mov ecx, dword [esp + 0x90]
cmp byte [ecx], 0x5b
jne 0x5af98f
lea edx, [eax + ecx - 1]
cmp byte [edx], 0x5d
jne 0x5af989
lea edx, [ecx + 1]
lea ebx, [eax - 2]
jmp 0x5af99e
mov ebx, eax
mov edx, ecx
jmp 0x5af99e
mov ebx, eax
mov edx, ecx
jmp 0x5af99e
mov ebx, eax
mov edx, dword [esp + 0x90]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x6c], edx
mov dword [esp], edx
mov dword [esp + 4], ebx
call fcn.004cf4c0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
test eax, eax
jne 0x5af9d7
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x90]
xor edx, edx
jmp 0x5afae7
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x68], eax
mov ebx, dword [esp + 0x8c]
mov ebp, dword [ebx + 0x214]
mov esi, dword [ebx + 0x218]
mov dword [esp + 0x38], esi
xor edi, edi
jmp 0x5afa23
mov eax, dword [esp + 0x78]
lea ebp, [eax + 0xc]
mov eax, dword [esp + 0x34]
lea edi, [eax + 1]
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x8c]
mov esi, dword [esp + 0x38]
cmp edi, esi
jge 0x5afa7a
mov dword [esp + 0x34], edi
mov dword [esp + 0x78], ebp
mov ebx, dword [ebp]
mov esi, dword [ebp + 4]
mov edi, dword [ebp + 8]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
call fcn.004ce010
movzx eax, byte [esp + 0x18]
test al, al
je 0x5af9fe
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0
add esp, 0x88
ret
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x7c], ebx
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x84], eax
lea eax, [0x74a700]
mov dword [esp], eax
lea eax, [esp + 0x7c]
mov dword [esp + 4], eax
call fcn.00408e50
mov eax, dword [esp + 8]
lea ecx, [0x7caa28]
mov dword [esp + 0x98], ecx
mov dword [esp + 0x9c], eax
add esp, 0x88
ret
cmp eax, edx
jle 0x5afb38
movzx ebx, byte [ecx + edx]
cmp ebx, 0x80
jge 0x5afafa
inc edx
jmp 0x5afb20
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.00450500
mov ebx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x90]
cmp ebx, 0xfffd
je 0x5afb34
add ebx, 0xffffffbf
cmp ebx, 0x19
ja 0x5afae7
xor edx, edx
jmp 0x5afb3d
xor edx, edx
jmp 0x5afb3d
mov edx, 1
test dl, dl
jne 0x5afb64
lea edx, [esp + 0x44]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.004458f0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
xor edx, edx
jmp 0x5afd1b
mov dword [esp + 0x20], eax
mov dword [esp + 0x64], ecx
nop
mov dword [esp], ecx
mov dword [esp + 4], eax
mov byte [esp + 8], 0
call fcn.005af140
mov eax, dword [esp + 0x8c]
mov ecx, dword [eax + 0x1fc]
mov dword [esp + 0x74], ecx
mov edx, dword [eax + 0x200]
mov dword [esp + 0x38], edx
movzx ebx, byte [esp + 0xc]
mov byte [esp + 0x1e], bl
xor ebp, ebp
jmp 0x5afbc1
mov esi, dword [esp + 0x34]
lea ebp, [esi + 1]
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x38]
movzx ebx, byte [esp + 0x1e]
cmp ebp, edx
jge 0x5afcc5
mov dword [esp + 0x34], ebp
lea esi, [ecx + ebp*8]
mov edi, dword [esi]
mov esi, dword [esi + 4]
test bl, bl
jne 0x5afbe9
mov dword [esp + 0x3c], eax
xor eax, eax
mov byte [esp + 0x1f], al
mov eax, dword [esp + 0x3c]
jmp 0x5afc2c
mov dword [esp + 0x24], esi
mov dword [esp + 0x70], edi
nop
mov dword [esp], edi
mov dword [esp + 4], esi
mov byte [esp + 8], 1
call fcn.005af140
movzx eax, byte [esp + 0xc]
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x38]
movzx ebx, byte [esp + 0x1e]
mov ebp, dword [esp + 0x34]
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x70]
mov byte [esp + 0x1f], al
mov eax, dword [esp + 0x8c]
movzx eax, byte [esp + 0x1f]
test al, al
je 0x5afc60
mov dword [esp], edi
mov dword [esp + 4], esi
mov eax, dword [esp + 0x64]
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0xc], ecx
call fcn.005af580
movzx eax, byte [esp + 0x10]
test al, al
je 0x5afba6
jmp 0x5afc8b
mov dword [esp], edi
mov dword [esp + 4], esi
mov eax, dword [esp + 0x64]
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0xc], ecx
call fcn.005af300
movzx eax, byte [esp + 0x10]
test al, al
je 0x5afba6
jmp 0x5afca8
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0
add esp, 0x88
ret
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0
add esp, 0x88
ret
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 0x84], eax
lea eax, [0x74a700]
mov dword [esp], eax
lea eax, [esp + 0x7c]
mov dword [esp + 4], eax
call fcn.00408e50
mov eax, dword [esp + 8]
lea ecx, [0x7caa28]
mov dword [esp + 0x98], ecx
mov dword [esp + 0x9c], eax
add esp, 0x88
ret
inc edx
cmp edx, ecx
jge 0x5afd39
movzx ebx, byte [eax + edx]
lea ebp, [ebx - 0x41]
xchg ebp, eax
cmp al, 0x19
xchg ebp, eax
ja 0x5afd1a
cmp edx, ecx
jae 0x5afd5a
add ebx, 0x20
mov byte [eax + edx], bl
jmp 0x5afd1a
mov dword [esp], 0
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.00445730
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
jmp 0x5afb64
mov eax, edx
call fcn.00456b40
nop
call fcn.00455690
jmp fcn.005af940