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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x58a29a
sub esp, 0x74
mov eax, dword [esp + 0x78]
movzx ecx, byte [eax + 0xc]
cmp cl, 3
jae 0x589e54
mov ecx, dword [0x8e6cb8]
mov edx, dword [0x8e6cbc]
jmp 0x589e6b
cmp cl, 5
jbe 0x589e67
mov ecx, dword [0x8e6cc0]
mov edx, dword [0x8e6cc4]
jmp 0x589e6b
xor ecx, ecx
xor edx, edx
test ecx, ecx
jne 0x589f69
mov word [esp + 0x17c], 0x29
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov ebx, dword [eax + 8]
mov ebp, dword [eax + 0x20]
mov esi, dword [eax + 0x1c]
lea edi, [esp + 0x7c]
mov dword [esp], edi
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], esi
call fcn.0058a380
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x20]
test eax, eax
jne 0x589efe
mov ebx, dword [esp + 0x18c]
mov eax, ebp
mov ebp, dword [esp + 0x188]
test ebx, ebx
je 0x589efa
mov dword [esp + 0x40], ecx
mov dword [esp + 0x58], eax
mov dword [esp + 0x54], ebx
mov edx, eax
xor eax, eax
mov dword [esp + 0x50], eax
mov eax, edx
jmp 0x58a144
mov edx, eax
jmp 0x589f7b
mov dword [esp + 0x64], edx
mov dword [esp + 0x70], ebx
lea eax, [0x6a8ce0]
mov dword [esp], eax
call fcn.0040b800
mov eax, dword [esp + 4]
mov dword [eax + 4], 0xe
lea ecx, [0x6d154e]
mov dword [eax], ecx
mov ecx, dword [esp + 0x70]
mov dword [eax + 8], ecx
mov ecx, dword [0x90e260]
test ecx, ecx
jne 0x589f41
mov ecx, dword [esp + 0x64]
mov dword [eax + 0xc], ecx
jmp 0x589f51
lea edi, [eax + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x64]
call fcn.004630d0
mov eax, ecx
lea ecx, [0x751488]
mov dword [esp + 0x194], ecx
mov dword [esp + 0x198], eax
add esp, 0x74
ret
mov dword [esp + 0x194], ecx
mov dword [esp + 0x198], edx
add esp, 0x74
ret
mov dword [esp + 0x3c], edi
mov ebx, eax
sub eax, edx
cmp eax, 0xffff
jle 0x589f9c
mov ecx, dword [0x8e6cf8]
mov edx, dword [0x8e6cfc]
mov eax, edx
mov edx, edi
jmp 0x58a01b
cmp edi, ecx
jb 0x58a11a
mov edx, edi
sub edi, ecx
mov ebp, edi
xchg edi, ebx
neg ebx
xchg edi, ebx
sar edi, 0x1f
and ecx, edi
add ecx, esi
cmp ebp, 2
jae 0x58a002
mov dword [esp + 0x60], esi
mov dword [esp + 0x58], ebx
mov dword [esp + 0x44], eax
lea eax, [0x696c40]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], 0
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], 2
call fcn.0044b8c0
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x58]
mov esi, dword [esp + 0x60]
mov ebp, eax
shr ax, 8
mov byte [ecx], al
xchg ebp, eax
mov byte [ecx + 1], al
xchg ebp, eax
mov word [esp + 0x184], bp
xor ecx, ecx
xor eax, eax
test ecx, ecx
jne 0x58a108
mov edi, dword [esp + 0x78]
movzx ecx, byte [edi + 0xc]
cmp cl, 3
ja 0x58a066
cmp cl, 2
jne 0x58a048
lea ecx, [edi + 0x12]
mov ebp, dword [0x8e6d40]
mov eax, esi
mov esi, dword [0x8e6d44]
jmp 0x58a0aa
cmp cl, 3
jne 0x58a0a2
lea ecx, [edi + 0x14]
mov ebp, dword [0x8e6d28]
mov edx, dword [0x8e6d2c]
mov eax, esi
mov esi, edx
mov edx, dword [esp + 0x3c]
jmp 0x58a0aa
cmp cl, 4
jne 0x58a084
lea ecx, [edi + 0x16]
mov ebp, dword [0x8e6d30]
mov edx, dword [0x8e6d34]
mov eax, esi
mov esi, edx
mov edx, dword [esp + 0x3c]
jmp 0x58a0aa
cmp cl, 5
jne 0x58a0a2
lea ecx, [edi + 0x18]
mov ebp, dword [0x8e6d20]
mov edx, dword [0x8e6d24]
mov eax, esi
mov esi, edx
mov edx, dword [esp + 0x3c]
jmp 0x58a0aa
mov eax, esi
xor ebp, ebp
xor esi, esi
xor ecx, ecx
movzx edx, word [ecx]
cmp dx, 0xffff
je 0x58a0bb
inc edx
mov word [ecx], dx
xor ebp, ebp
xor esi, esi
test ebp, ebp
jne 0x58a0f6
mov dword [edi + 4], ebx
mov ecx, dword [esp + 0x3c]
mov dword [edi + 8], ecx
mov ecx, dword [0x90e260]
test ecx, ecx
jne 0x58a0d7
mov dword [edi], eax
jmp 0x58a0dc
call fcn.004630d0
mov dword [esp + 0x194], 0
mov dword [esp + 0x198], 0
add esp, 0x74
ret
mov dword [esp + 0x194], ebp
mov dword [esp + 0x198], esi
add esp, 0x74
ret
mov dword [esp + 0x194], ecx
mov dword [esp + 0x198], eax
add esp, 0x74
ret
mov edx, edi
call fcn.00463190
mov edx, dword [esp + 0x6c]
lea ebp, [edx + 0x10]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x58]
mov ebx, dword [esp + 0x54]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x38]
mov esi, dword [esp + 0x5c]
mov dword [esp + 0x6c], ebp
mov ecx, dword [ebp + 8]
mov dword [esp + 0x4c], ecx
mov edx, dword [ebp + 4]
mov dword [esp + 0x68], edx
movzx ebp, word [ebp]
mov word [esp + 0x32], bp
lea ebx, [eax + 2]
cmp edi, ebx
jae 0x58a1a8
mov dword [esp + 0x34], eax
lea ecx, [0x696c40]
mov dword [esp], ecx
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], ebx
call fcn.0044b8c0
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
lea ebx, [eax + 2]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x68]
movzx ebp, word [esp + 0x32]
shr bp, 8
xchg ebp, ebx
mov byte [esi + eax], bl
xchg ebp, ebx
movzx ebp, word [esp + 0x32]
xchg ebp, ebx
mov byte [esi + eax + 1], bl
xchg ebp, ebx
nop
lea eax, [ebx + 2]
cmp edi, eax
jae 0x58a205
mov dword [esp + 0x34], ebx
lea ecx, [0x696c40]
mov dword [esp], ecx
mov dword [esp + 4], esi
mov dword [esp + 8], ebx
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], eax
call fcn.0044b8c0
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
add eax, 2
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x68]
mov ebx, dword [esp + 0x34]
mov ebp, ecx
shr cx, 8
mov byte [esi + ebx], cl
xchg ebp, eax
mov byte [esi + ebx + 1], al
xchg ebp, eax
nop
lea ecx, [eax + ebp]
mov dword [esp + 0x34], ecx
cmp edi, ecx
jae 0x58a256
mov dword [esp + 0x48], eax
lea edx, [0x696c40]
mov dword [esp], edx
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], ecx
call fcn.0044b8c0
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x68]
mov ebp, dword [esp + 0x4c]
mov dword [esp + 0x38], edi
mov dword [esp + 0x5c], esi
add eax, esi
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ebp
call fcn.00463a60
mov eax, dword [esp + 0x50]
inc eax
mov ecx, dword [esp + 0x54]
cmp ecx, eax
jg 0x58a121
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x58]
mov edi, dword [esp + 0x38]
mov esi, dword [esp + 0x5c]
mov eax, dword [esp + 0x34]
jmp 0x589f7b
call fcn.00461cc0
jmp fcn.00589e20