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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x459f34
sub esp, 0x60
mov eax, dword [esp + 0x68]
cmp eax, 2
jl 0x459efe
mov ecx, dword [esp + 0x64]
movzx edx, byte [ecx]
movzx ebx, byte [eax + ecx - 1]
cmp dl, bl
jne 0x459ed6
lea ebx, [eax - 2]
mov dword [esp + 0x2c], ebx
mov ebp, ebx
neg ebx
sar ebx, 0x1f
and ebx, 1
add ecx, ebx
mov dword [esp + 0x58], ecx
cmp dl, 0x60
je 0x459d51
mov byte [esp + 0x26], dl
cmp dl, 0x22
je 0x45994c
cmp dl, 0x27
jne 0x459d29
nop
mov dword [esp], ecx
mov dword [esp + 4], ebp
mov byte [esp + 8], 0xa
call fcn.00402160
cmp dword [esp + 0xc], 0xffffffff
jne 0x459d01
nop
mov eax, dword [esp + 0x58]
mov dword [esp], eax
mov ecx, dword [esp + 0x2c]
mov dword [esp + 4], ecx
mov byte [esp + 8], 0x5c
call fcn.00402160
cmp dword [esp + 0xc], 0xffffffff
je 0x459cd6
xor eax, eax
test al, al
je 0x4599ab
movzx eax, byte [esp + 0x26]
cmp al, 0x22
je 0x459c8b
cmp al, 0x27
je 0x459c1e
mov dword [esp + 0x30], 0
lea eax, [0x640f20]
mov dword [esp], eax
mov dword [esp + 4], 0
mov ecx, dword [esp + 0x68]
lea edx, [ecx + ecx*2 - 6]
lea ecx, [ecx + ecx*2]
shr edx, 0x1f
lea ecx, [ecx + edx - 6]
sar ecx, 1
mov dword [esp + 0x48], ecx
mov dword [esp + 8], ecx
call fcn.00438de0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x58]
xor ebx, ebx
mov ebp, dword [esp + 0x48]
jmp 0x459a05
mov edx, ebx
mov eax, edi
mov ebx, ecx
mov ebp, esi
mov ecx, dword [esp + 0x28]
test ecx, ecx
jle 0x459be2
mov dword [esp + 0x5c], eax
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebp
mov dword [esp], edx
mov dword [esp + 4], ecx
movzx eax, byte [esp + 0x26]
mov byte [esp + 8], al
call fcn.004592a0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0xc]
movzx esi, byte [esp + 0x10]
test ecx, ecx
jne 0x459bc6
mov dword [esp + 0x28], edx
mov dword [esp + 0x54], ebx
cmp ebp, 0x80
jge 0x459b05
mov eax, dword [esp + 0x44]
lea ecx, [eax + 1]
mov esi, dword [esp + 0x48]
cmp ecx, esi
ja 0x459abb
mov edi, dword [esp + 0x5c]
xchg ebp, ebx
mov byte [edi + eax], bl
xchg ebp, ebx
movzx eax, byte [esp + 0x26]
cmp al, 0x27
jne 0x4599f9
test edx, edx
je 0x4599f9
mov eax, dword [0x894eb8]
mov ecx, dword [0x894ebc]
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ecx
add esp, 0x60
ret
mov dword [esp + 0x3c], ebp
lea edx, [0x640f20]
mov dword [esp], edx
mov ebx, dword [esp + 0x5c]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ecx
call fcn.00438ea0
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
lea ecx, [eax + 1]
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x54]
mov ebp, dword [esp + 0x3c]
jmp 0x459a76
xchg esi, eax
test al, al
xchg esi, eax
je 0x459a63
lea eax, [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 4], 4
mov dword [esp + 8], 4
call fcn.004516a0
mov eax, dword [esp + 0x10]
test eax, eax
jl 0x459f26
cmp eax, 4
ja 0x459f26
mov ecx, dword [esp + 0x44]
lea edx, [eax + ecx]
mov dword [esp + 0x50], edx
mov ebx, dword [esp + 0x48]
cmp edx, ebx
ja 0x459b8e
mov ebp, dword [esp + 0x5c]
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x48], ebx
add ecx, ebp
mov dword [esp], ecx
lea ecx, [esp + 0x30]
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.0044d890
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x54]
mov edi, dword [esp + 0x5c]
mov esi, dword [esp + 0x48]
mov ecx, dword [esp + 0x50]
jmp 0x459a7d
mov dword [esp + 0x34], eax
lea eax, [0x640f20]
mov dword [esp], eax
mov ebp, dword [esp + 0x5c]
mov dword [esp + 4], ebp
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], edx
call fcn.00438ea0
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x44]
jmp 0x459b57
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], eax
add esp, 0x60
ret
mov dword [esp], 0
mov dword [esp + 4], eax
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ebp
call fcn.0043c2a0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
add esp, 0x60
ret
mov eax, dword [esp + 0x58]
mov dword [esp], eax
mov ecx, dword [esp + 0x2c]
mov dword [esp + 4], ecx
call fcn.004512a0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
cmp ecx, 0xfffd
mov edx, dword [esp + 0x2c]
cmp eax, edx
jne 0x459c59
cmp ecx, 0xfffd
je 0x459c83
mov eax, 1
test al, al
jne 0x459c63
movzx eax, byte [esp + 0x26]
jmp 0x4599ab
mov eax, dword [esp + 0x58]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
add esp, 0x60
ret
cmp eax, 1
setne al
jmp 0x459c55
mov eax, dword [esp + 0x58]
mov dword [esp], eax
mov ecx, dword [esp + 0x2c]
mov dword [esp + 4], ecx
call fcn.00451be0
movzx eax, byte [esp + 8]
test al, al
jne 0x459cb2
movzx eax, byte [esp + 0x26]
jmp 0x4599ab
mov eax, dword [esp + 0x58]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
add esp, 0x60
ret
nop
mov eax, dword [esp + 0x58]
mov dword [esp], eax
mov ecx, dword [esp + 0x2c]
mov dword [esp + 4], ecx
movzx edx, byte [esp + 0x26]
mov byte [esp + 8], dl
call fcn.00402160
cmp dword [esp + 0xc], 0xffffffff
sete al
jmp 0x459990
mov eax, dword [0x894ebc]
mov ecx, dword [0x894eb8]
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], eax
add esp, 0x60
ret
mov eax, dword [0x894ebc]
mov ecx, dword [0x894eb8]
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], eax
add esp, 0x60
ret
nop
mov dword [esp], ecx
mov dword [esp + 4], ebp
mov byte [esp + 8], 0x60
call fcn.00402160
cmp dword [esp + 0xc], 0xffffffff
jne 0x459eae
nop
mov eax, dword [esp + 0x58]
mov dword [esp], eax
mov ecx, dword [esp + 0x2c]
mov dword [esp + 4], ecx
mov byte [esp + 8], 0xd
call fcn.00402160
cmp dword [esp + 0xc], 0xffffffff
je 0x459e8a
lea eax, [0x640f20]
mov dword [esp], eax
mov dword [esp + 4], 0
mov ecx, dword [esp + 0x68]
add ecx, 0xfffffffd
mov dword [esp + 0x4c], ecx
mov dword [esp + 8], ecx
call fcn.00438de0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x58]
mov ebx, dword [esp + 0x4c]
xor ebp, ebp
xor esi, esi
jmp 0x459dd7
inc ebp
mov edi, dword [esp + 0x58]
mov esi, edx
mov edx, edi
cmp ebp, ecx
jge 0x459e4e
jae 0x459f2d
movzx edi, byte [edx + ebp]
xchg edi, eax
cmp al, 0xd
xchg edi, eax
je 0x459e4a
lea edx, [esi + 1]
cmp edx, ebx
ja 0x459dfc
xchg edi, ebx
mov byte [eax + esi], bl
xchg edi, ebx
jmp 0x459dce
mov dword [esp + 0x38], ebp
xchg edi, eax
mov byte [esp + 0x27], al
xchg edi, eax
mov dword [esp + 0x40], esi
lea ecx, [0x640f20]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], esi
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], edx
call fcn.00438ea0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x38]
mov esi, dword [esp + 0x40]
movzx edi, byte [esp + 0x27]
jmp 0x459df3
mov edx, esi
jmp 0x459dce
mov dword [esp], 0
mov dword [esp + 4], eax
mov dword [esp + 8], esi
mov dword [esp + 0xc], ebx
call fcn.0043c2a0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
add esp, 0x60
ret
mov eax, dword [esp + 0x58]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
add esp, 0x60
ret
mov eax, dword [0x894eb8]
mov ecx, dword [0x894ebc]
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ecx
add esp, 0x60
ret
mov eax, dword [0x894ebc]
mov ecx, dword [0x894eb8]
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], eax
add esp, 0x60
ret
mov eax, dword [0x894ebc]
mov ecx, dword [0x894eb8]
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], eax
add esp, 0x60
ret
call fcn.00427250
ud2
call fcn.00427150
ud2
call fcn.0044b940
jmp fcn.004598e0