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

Disassembly:
mov ecx, dword [0x7da588]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x59a1c1
sub esp, 0x30
mov ebx, dword [esp + 0x34]
mov ebp, dword [ebx + 0x34]
test ebp, ebp
je 0x59a1a8
mov ebp, dword [esp + 0x38]
cmp dword [ebx + 0x64], ebp
jge 0x5998c8
mov esi, dword [ebx + 0x7c]
test esi, esi
jne 0x599847
mov dword [esp], ebx
call fcn.005994a0
movzx eax, byte [esp + 4]
test al, al
je 0x5998bf
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0x38]
mov esi, dword [ebx + 0x60]
mov edi, dword [ebx + 0x58]
test esi, esi
jle 0x5998a3
cmp esi, edi
jge 0x5998a3
mov eax, dword [ebx + 0x5c]
mov ecx, dword [ebx + 0x54]
sub eax, esi
neg eax
sar eax, 0x1f
and eax, esi
mov edx, edi
sub edi, esi
lea esi, [ecx + eax]
cmp edx, edi
jg 0x599871
mov edi, edx
test eax, eax
je 0x599895
mov dword [esp + 0x2c], edx
mov dword [esp], ecx
mov dword [esp + 4], esi
mov dword [esp + 8], edi
call fcn.0046c780
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0x38]
mov esi, dword [ebx + 0x60]
mov dword [ebx + 0x60], 0
sub edx, esi
jmp 0x5998b2
cmp esi, edi
jne 0x5998b0
mov dword [ebx + 0x60], 0
xor edi, edi
mov edx, edi
mov esi, dword [ebx + 0x5c]
mov dword [ebx + 0x58], esi
mov eax, 1
jmp 0x5998d3
mov byte [esp + 0x3c], 0
add esp, 0x30
ret
mov byte [esp + 0x3c], 1
add esp, 0x30
ret
xor eax, eax
cmp dword [ebx + 0x64], ebp
jge 0x59998e
mov dword [esp + 0x18], edx
test al, al
je 0x5998f0
mov esi, dword [ebx + 0x78]
cmp dword [ebx + 0x70], esi
jne 0x5999d0
mov dword [esp], ebx
call fcn.00599610
movzx eax, byte [esp + 4]
test al, al
je 0x59996b
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0x38]
jmp 0x5999d0
mov ebx, dword [esp + 0x34]
movzx ebp, byte [ebx + 0x50]
xchg ebp, eax
test al, al
xchg ebp, eax
jne 0x599dd1
mov ebp, dword [esp + 0x38]
jmp 0x599958
mov ebx, dword [esp + 0x34]
movzx ebp, byte [ebx + 0x50]
xchg ebp, eax
test al, al
xchg ebp, eax
jne 0x599ea1
mov edx, dword [esp + 0x28]
mov ebp, dword [esp + 0x38]
jmp 0x599958
movzx ebp, byte [ebx + 0x50]
xchg ebp, eax
test al, al
xchg ebp, eax
jne 0x599f27
mov ebp, dword [esp + 0x38]
movzx esi, byte [ebx + 0x50]
xchg esi, eax
test al, al
xchg esi, eax
je 0x5998d1
jmp 0x599f6a
mov eax, dword [esp + 0x34]
mov edx, dword [eax + 0x5c]
mov ecx, dword [esp + 0x18]
cmp ecx, edx
ja 0x5999be
mov dword [eax + 0x58], ecx
mov byte [esp + 0x3c], 0
add esp, 0x30
ret
mov esi, dword [ebx + 0x54]
mov byte [esi + edx], 0
inc edx
cmp ebp, edx
jle 0x59999b
mov ecx, dword [ebx + 0x58]
cmp edx, ecx
jb 0x599986
jmp 0x5999b7
mov eax, dword [ebx + 0x5c]
cmp edx, eax
ja 0x5999ae
mov dword [ebx + 0x58], edx
mov byte [esp + 0x3c], 1
add esp, 0x30
ret
mov ecx, edx
mov edx, eax
call fcn.0046bf30
mov eax, edx
call fcn.0046bef0
call fcn.0046bf30
inc dword [ebp + 0x64]
mov ebp, dword [esp + 0x38]
mov edx, ebx
mov ebx, dword [esp + 0x34]
mov eax, dword [ebx + 0x78]
mov ecx, dword [ebx + 0x70]
cmp ecx, eax
je 0x599958
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], edx
mov esi, dword [ebx + 0x7c]
mov edi, dword [ebx + 0x6c]
sub ecx, eax
cmp esi, 1
jne 0x599ae9
mov esi, dword [esp + 0x2c]
cmp esi, eax
jbe 0x59a1a1
movzx ebp, byte [edi + eax]
xchg ebp, eax
test al, 0x80
xchg ebp, eax
jne 0x599a21
mov dword [esp + 0x1c], eax
mov eax, 1
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
jmp 0x599a90
xchg ebp, eax
mov byte [esp + 0xf], al
xchg ebp, eax
and ebp, 0xffffffe0
xchg ebp, eax
cmp al, 0xc0
xchg ebp, eax
jne 0x599a46
movzx ebp, byte [esp + 0xf]
mov ebp, 2
mov dword [esp + 0x10], ebp
movzx ebp, byte [esp + 0xf]
jmp 0x599a90
movzx ebp, byte [esp + 0xf]
and ebp, 0xfffffff0
xchg ebp, eax
cmp al, 0xe0
xchg ebp, eax
jne 0x599a6a
movzx ebp, byte [esp + 0xf]
mov ebp, 3
mov dword [esp + 0x10], ebp
movzx ebp, byte [esp + 0xf]
jmp 0x599a90
movzx ebp, byte [esp + 0xf]
and ebp, 0xfffffff8
xchg ebp, eax
cmp al, 0xf0
xchg ebp, eax
jne 0x599e14
movzx ebp, byte [esp + 0xf]
mov ebp, 4
mov dword [esp + 0x10], ebp
movzx ebp, byte [esp + 0xf]
mov ebx, dword [esp + 0x10]
cmp ebx, ecx
jg 0x599912
xchg ebp, eax
test al, 0x80
xchg ebp, eax
jne 0x599aa8
and ebp, 0x7f
jmp 0x599adf
mov ecx, ebp
and ebp, 0xffffffe0
xchg ebp, eax
cmp al, 0xc0
xchg ebp, eax
jne 0x599abb
and ecx, 0x1f
mov ebp, ecx
jmp 0x599adf
mov ebp, ecx
and ecx, 0xfffffff0
cmp cl, 0xe0
jne 0x599aca
and ebp, 0xf
jmp 0x599adf
mov ecx, ebp
and ebp, 0xfffffff8
xchg ebp, eax
cmp al, 0xf0
xchg ebp, eax
jne 0x599add
and ecx, 7
mov ebp, ecx
jmp 0x599adf
xor ebp, ebp
mov ecx, 1
jmp 0x59a057
lea ebp, [esi - 2]
cmp ebp, 1
ja 0x59a02d
cmp ecx, 2
jl 0x599946
cmp esi, 2
xchg ebp, ebx
setne bl
xchg ebp, ebx
xchg ebp, eax
movzx eax, al
xchg ebp, eax
lea edx, [ebp + eax]
mov ebx, dword [esp + 0x2c]
cmp ebx, edx
jbe 0x59a024
mov dword [esp + 0x2c], edx
cmp esi, 2
xchg esi, ebx
sete bl
xchg esi, ebx
xchg esi, eax
movzx eax, al
xchg esi, eax
mov dword [esp + 0x14], esi
add esi, eax
movzx edx, byte [edx + edi]
cmp ebx, esi
jbe 0x59a01b
mov dword [esp + 0x24], esi
movzx esi, byte [esi + edi]
shl esi, 8
add esi, edx
mov edx, esi
and esi, 0xfc00
cmp esi, 0xdc00
je 0x599ee4
cmp esi, 0xd800
jne 0x599bd8
cmp ecx, 4
jl 0x59992a
lea ebp, [ebp + eax + 2]
cmp ebx, ebp
jbe 0x59a012
mov ebp, dword [esp + 0x14]
lea ebp, [ebp + eax + 2]
mov esi, dword [esp + 0x2c]
movzx esi, byte [esi + edi + 2]
cmp ebx, ebp
jbe 0x59a009
mov ebx, dword [esp + 0x24]
movzx ebx, byte [ebx + edi + 2]
shl ebx, 8
add ebx, esi
mov ebp, ebx
and ebx, 0xfc00
cmp ebx, 0xdc00
jne 0x599e5b
and edx, 0x3ff
shl edx, 0xa
and ebp, 0x3ff
lea esi, [ebp + edx + 0x10000]
mov ecx, 4
jmp 0x599bdf
mov esi, edx
mov ecx, 2
cmp esi, 9
je 0x599c2c
cmp esi, 0xa
je 0x599c2c
cmp esi, 0xd
je 0x599c2c
lea ebx, [esi - 0x20]
cmp ebx, 0x5e
jbe 0x599c2c
cmp esi, 0x85
je 0x599c2c
lea ebx, [esi - 0xa0]
cmp ebx, 0xd75f
jbe 0x599c2c
lea ebx, [esi - 0xe000]
cmp ebx, 0x1ffd
jbe 0x599c2c
lea ebx, [esi - 0x10000]
cmp ebx, 0xfffff
ja 0x599f88
lea ebx, [ecx + eax]
mov ebp, dword [esp + 0x34]
mov dword [ebp + 0x78], ebx
add dword [ebp + 0x80], ecx
cmp esi, 0x7f
jg 0x599c62
mov ecx, dword [ebp + 0x58]
mov eax, dword [esp + 0x28]
cmp eax, ecx
jae 0x59a004
mov ebx, dword [ebp + 0x54]
xchg esi, ecx
mov byte [ebx + eax], cl
xchg esi, ecx
lea ebx, [eax + 1]
jmp 0x5999c3
cmp esi, 0x7ff
jg 0x599cb8
mov ecx, dword [ebp + 0x58]
mov eax, dword [esp + 0x28]
cmp eax, ecx
jae 0x599fff
mov ebx, dword [ebp + 0x54]
mov edi, esi
sar esi, 6
add esi, 0xc0
xchg esi, ecx
mov byte [ebx + eax], cl
xchg esi, ecx
mov ecx, dword [ebp + 0x58]
lea ebx, [eax + 1]
cmp ecx, ebx
jbe 0x599ff8
mov ebx, dword [ebp + 0x54]
and edi, 0x3f
lea esi, [edi + 0x80]
xchg esi, ecx
mov byte [eax + ebx + 1], cl
xchg esi, ecx
lea ebx, [eax + 2]
jmp 0x5999c3
cmp esi, 0xffff
jg 0x599d35
mov ecx, dword [ebp + 0x58]
mov eax, dword [esp + 0x28]
cmp eax, ecx
jae 0x599ff3
mov ebx, dword [ebp + 0x54]
mov edi, esi
sar esi, 0xc
add esi, 0xe0
xchg esi, ecx
mov byte [ebx + eax], cl
xchg esi, ecx
mov ecx, dword [ebp + 0x58]
lea ebx, [eax + 1]
cmp ecx, ebx
jbe 0x599fec
mov ebx, dword [ebp + 0x54]
mov esi, edi
sar edi, 6
and edi, 0x3f
add edi, 0x80
xchg edi, ecx
mov byte [eax + ebx + 1], cl
xchg edi, ecx
mov ecx, dword [ebp + 0x58]
lea ebx, [eax + 2]
cmp ecx, ebx
jbe 0x599fe5
mov ebx, dword [ebp + 0x54]
and esi, 0x3f
add esi, 0x80
xchg esi, ecx
mov byte [eax + ebx + 2], cl
xchg esi, ecx
lea ebx, [eax + 3]
jmp 0x5999c3
mov ecx, dword [ebp + 0x58]
mov eax, dword [esp + 0x28]
cmp eax, ecx
jae 0x599fe0
mov ebx, dword [ebp + 0x54]
mov edi, esi
sar esi, 0x12
add esi, 0xf0
xchg esi, ecx
mov byte [ebx + eax], cl
xchg esi, ecx
mov ecx, dword [ebp + 0x58]
lea ebx, [eax + 1]
cmp ecx, ebx
jbe 0x599fd9
mov ebx, dword [ebp + 0x54]
mov esi, edi
sar edi, 0xc
and edi, 0x3f
add edi, 0x80
xchg edi, ecx
mov byte [eax + ebx + 1], cl
xchg edi, ecx
mov ecx, dword [ebp + 0x58]
lea ebx, [eax + 2]
cmp ecx, ebx
jbe 0x599fd2
mov ebx, dword [ebp + 0x54]
mov edi, esi
sar esi, 6
and esi, 0x3f
add esi, 0x80
xchg esi, ecx
mov byte [eax + ebx + 2], cl
xchg esi, ecx
mov ecx, dword [ebp + 0x58]
lea ebx, [eax + 3]
cmp ecx, ebx
jbe 0x599fcb
mov esi, dword [ebp + 0x54]
and edi, 0x3f
add edi, 0x80
xchg edi, ebx
mov byte [eax + esi + 3], bl
xchg edi, ebx
lea ebx, [eax + 4]
jmp 0x5999c3
mov eax, dword [ebx + 0x80]
mov dword [ebx], 2
mov dword [ebx + 8], 0x1f
mov ecx, dword [0x7da640]
test ecx, ecx
je 0x599df8
mov ecx, dword [ebx + 4]
call fcn.0046be70
mov dword [edi], ecx
lea ecx, [0x614ac0]
mov dword [ebx + 4], ecx
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], 0xffffffff
mov byte [esp + 0x3c], 0
add esp, 0x30
ret
mov eax, dword [ebx + 0x80]
mov dword [ebx], 2
mov dword [ebx + 8], 0x1b
mov ecx, dword [0x7da640]
test ecx, ecx
je 0x599e3b
mov ecx, dword [ebx + 4]
call fcn.0046be70
mov dword [edi], ecx
lea ecx, [0x612dee]
mov dword [ebx + 4], ecx
mov dword [ebx + 0xc], eax
movzx eax, byte [esp + 0xf]
movzx eax, al
mov dword [ebx + 0x10], eax
mov byte [esp + 0x3c], 0
add esp, 0x30
ret
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 0x80]
mov dword [eax], 2
mov dword [eax + 8], 0x1b
mov edx, dword [0x7da640]
test edx, edx
je 0x599e86
mov edx, dword [eax + 4]
call fcn.0046be70
mov dword [edi], edx
lea edx, [0x612e24]
mov dword [eax + 4], edx
add ecx, 2
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ebp
mov byte [esp + 0x3c], 0
add esp, 0x30
ret
mov eax, dword [ebx + 0x80]
mov dword [ebx], 2
mov dword [ebx + 8], 0x20
mov ecx, dword [0x7da640]
test ecx, ecx
je 0x599ec8
mov ecx, dword [ebx + 4]
call fcn.0046be70
mov dword [edi], ecx
lea ecx, [0x61518e]
mov dword [ebx + 4], ecx
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], 0xffffffff
mov byte [esp + 0x3c], 0
add esp, 0x30
ret
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 0x80]
mov dword [eax], 2
mov dword [eax + 8], 0x1d
mov ebx, dword [0x7da640]
test ebx, ebx
je 0x599f0f
mov ebx, dword [eax + 4]
call fcn.0046be70
mov dword [edi], ebx
lea ebx, [0x613c90]
mov dword [eax + 4], ebx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edx
mov byte [esp + 0x3c], 0
add esp, 0x30
ret
mov eax, dword [ebx + 0x80]
mov dword [ebx], 2
mov dword [ebx + 8], 0x1b
mov ecx, dword [0x7da640]
test ecx, ecx
je 0x599f4e
mov ecx, dword [ebx + 4]
call fcn.0046be70
mov dword [edi], ecx
lea ecx, [0x612e09]
mov dword [ebx + 4], ecx
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], 0xffffffff
mov byte [esp + 0x3c], 0
add esp, 0x30
ret
mov ecx, dword [ebx + 0x58]
cmp edx, ecx
jae 0x599f81
mov esi, dword [ebx + 0x54]
mov byte [esi + edx], 0
inc dword [ebx + 0x64]
inc edx
jmp 0x59998e
mov eax, edx
call fcn.0046bef0
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 0x80]
mov dword [eax], 2
mov dword [eax + 8], 0x22
mov edx, dword [0x7da640]
test edx, edx
je 0x599fb3
mov edx, dword [eax + 4]
call fcn.0046be70
mov dword [edi], edx
lea edx, [0x615cc8]
mov dword [eax + 4], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], esi
mov byte [esp + 0x3c], 0
add esp, 0x30
ret
mov eax, ebx
call fcn.0046bef0
mov eax, ebx
call fcn.0046bef0
mov eax, ebx
call fcn.0046bef0
call fcn.0046bef0
mov eax, ebx
call fcn.0046bef0
mov eax, ebx
call fcn.0046bef0
call fcn.0046bef0
mov eax, ebx
call fcn.0046bef0
call fcn.0046bef0
call fcn.0046bef0
mov eax, ebp
mov ecx, ebx
call fcn.0046bef0
mov eax, ebp
mov ecx, ebx
call fcn.0046bef0
mov eax, esi
mov ecx, ebx
call fcn.0046bef0
mov eax, edx
mov ecx, ebx
call fcn.0046bef0
lea eax, [0x5dd3e0]
mov dword [esp], eax
lea eax, [0x6582e0]
mov dword [esp + 4], eax
call fcn.004391b0
shl ebp, 6
movzx edx, byte [esp + 0xf]
and edx, 0x3f
inc ecx
add ebp, edx
mov edx, dword [esp + 0x28]
cmp ecx, ebx
jge 0x59a0c3
lea edx, [ecx + eax]
cmp esi, edx
jbe 0x59a198
movzx edx, byte [edx + edi]
mov byte [esp + 0xf], dl
and edx, 0xffffffc0
cmp dl, 0x80
je 0x59a045
mov eax, dword [esp + 0x34]
mov edx, dword [eax + 0x80]
mov dword [eax], 2
mov dword [eax + 8], 0x1c
mov ebx, dword [0x7da640]
add ecx, edx
test ebx, ebx
je 0x59a0a3
mov edx, dword [eax + 4]
call fcn.0046be70
mov dword [edi], edx
lea edx, [0x6134d8]
mov dword [eax + 4], edx
mov dword [eax + 0xc], ecx
movzx ecx, byte [esp + 0xf]
movzx ecx, cl
mov dword [eax + 0x10], ecx
mov byte [esp + 0x3c], 0
add esp, 0x30
ret
cmp ebx, 1
je 0x59a0ef
cmp ebx, 2
jne 0x59a0d5
cmp ebp, 0x80
jge 0x59a0ef
cmp ebx, 3
jne 0x59a0e2
cmp ebp, 0x800
jge 0x59a0ef
cmp ebx, 4
jne 0x59a151
cmp ebp, 0x10000
jl 0x59a151
lea esi, [ebp - 0xd800]
cmp esi, 0x7ff
jbe 0x59a10e
cmp ebp, 0x10ffff
jg 0x59a10e
mov esi, ebp
mov ecx, ebx
jmp 0x599bdf
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 0x80]
mov dword [eax], 2
mov dword [eax + 8], 0x19
mov edx, dword [0x7da640]
test edx, edx
je 0x59a139
mov edx, dword [eax + 4]
call fcn.0046be70
mov dword [edi], edx
lea edx, [0x611dc6]
mov dword [eax + 4], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ebp
mov byte [esp + 0x3c], 0
add esp, 0x30
ret
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 0x80]
mov dword [eax], 2
mov dword [eax + 8], 0x22
mov edx, dword [0x7da640]
test edx, edx
je 0x59a17c
mov edx, dword [eax + 4]
call fcn.0046be70
mov dword [edi], edx
lea edx, [0x615ca6]
mov dword [eax + 4], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], 0xffffffff
mov byte [esp + 0x3c], 0
add esp, 0x30
ret
mov eax, edx
mov ecx, esi
call fcn.0046bef0
mov ecx, esi
call fcn.0046bef0
lea eax, [0x5dd3e0]
mov dword [esp], eax
lea eax, [0x6582d8]
mov dword [esp + 4], eax
call fcn.004391b0
nop
call fcn.0046aa70
jmp fcn.005997f0