Function at 0x589b80
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 0x589fa2
sub esp, 0x88
mov eax, dword [esp + 0x94]
cmp eax, 3
jl 0x589bcd
mov ecx, dword [esp + 0x90]
cmp byte [ecx], 0x5b
jne 0x589bd4
lea edx, [eax + ecx - 1]
cmp byte [edx], 0x5d
jne 0x589bd4
lea edx, [ecx + 1]
lea ebx, [eax - 2]
mov eax, ebx
mov ecx, edx
jmp 0x589bd4
mov ecx, dword [esp + 0x90]
mov dword [esp + 0x30], eax
mov dword [esp + 0x70], ecx
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004d8b70
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 8]
test edx, edx
jne 0x589c0d
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x90]
xor edx, edx
jmp 0x589d28
mov ebx, dword [esp + 0x8c]
mov ebp, dword [ebx + 0x218]
mov esi, dword [ebx + 0x214]
test ebp, ebp
je 0x589c3b
mov dword [esp + 0x28], ecx
mov dword [esp + 0x6c], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x38], ebp
xor edi, edi
jmp 0x589cbd
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x7c], ebx
mov eax, dword [esp + 0x70]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x84], eax
lea eax, [0x5f7b00]
mov dword [esp], eax
lea eax, [esp + 0x7c]
mov dword [esp + 4], eax
call fcn.00408f00
mov eax, dword [esp + 8]
lea ecx, [0x6684c8]
mov dword [esp + 0x98], ecx
mov dword [esp + 0x9c], eax
add esp, 0x88
ret
mov ebx, dword [esp + 0x78]
lea esi, [ebx + 0xc]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x6c]
mov edi, eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x34], edi
mov dword [esp + 0x78], esi
mov ebx, dword [esi]
mov ebp, dword [esi + 4]
mov esi, dword [esi + 8]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], esi
call fcn.004d7c60
movzx eax, byte [esp + 0x18]
test al, al
jne 0x589d0b
mov eax, dword [esp + 0x34]
inc eax
mov ecx, dword [esp + 0x38]
cmp ecx, eax
jg 0x589ca8
mov ebx, dword [esp + 0x8c]
jmp 0x589c3b
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0
add esp, 0x88
ret
cmp eax, edx
jle 0x589d79
movzx ebx, byte [ecx + edx]
cmp ebx, 0x80
jge 0x589d3b
inc edx
jmp 0x589d61
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.0045bf70
mov ebx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x90]
cmp ebx, 0xfffd
je 0x589d75
add ebx, 0xffffffbf
cmp ebx, 0x19
ja 0x589d28
xor edx, edx
jmp 0x589d7e
xor edx, edx
jmp 0x589d7e
mov edx, 1
test dl, dl
jne 0x589da5
lea edx, [esp + 0x44]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.0044e300
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
xor edx, edx
jmp 0x589f5b
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.00589380
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 0x589e02
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 0x589f05
mov dword [esp + 0x34], ebp
lea esi, [ecx + ebp*8]
mov edi, dword [esi]
mov esi, dword [esi + 4]
test bl, bl
jne 0x589e2a
mov dword [esp + 0x3c], eax
xor eax, eax
mov byte [esp + 0x1f], al
mov eax, dword [esp + 0x3c]
jmp 0x589e6c
mov dword [esp + 0x68], edi
mov dword [esp + 0x2c], esi
mov dword [esp], edi
mov dword [esp + 4], esi
mov byte [esp + 8], 1
call fcn.00589380
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 + 0x2c]
mov edi, dword [esp + 0x68]
mov byte [esp + 0x1f], al
mov eax, dword [esp + 0x8c]
movzx eax, byte [esp + 0x1f]
test al, al
je 0x589ea0
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.005897c0
movzx eax, byte [esp + 0x10]
test al, al
je 0x589de7
jmp 0x589ecb
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.00589540
movzx eax, byte [esp + 0x10]
test al, al
je 0x589de7
jmp 0x589ee8
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, [0x5f7b00]
mov dword [esp], eax
lea eax, [esp + 0x7c]
mov dword [esp + 4], eax
call fcn.00408f00
mov eax, dword [esp + 8]
lea ecx, [0x6684c8]
mov dword [esp + 0x98], ecx
mov dword [esp + 0x9c], eax
add esp, 0x88
ret
inc edx
cmp edx, ecx
jge 0x589f79
movzx ebx, byte [eax + edx]
lea ebp, [ebx - 0x41]
xchg ebp, eax
cmp al, 0x19
xchg ebp, eax
ja 0x589f5a
cmp edx, ecx
jae 0x589f9a
add ebx, 0x20
mov byte [eax + edx], bl
jmp 0x589f5a
mov dword [esp], 0
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.0044e1a0
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
jmp 0x589da5
mov eax, edx
call fcn.00461150
nop
call fcn.0045fcc0
jmp fcn.00589b80