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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 4]
cmp eax, dword [ecx + 8]
jbe 0x599e64
sub esp, 0x84
mov eax, dword [esp + 0x88]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp], ecx
mov dword [esp + 4], edx
call fcn.00599370
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x599e21
mov eax, dword [esp + 0x88]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov dword [esp], ecx
mov dword [esp + 4], edx
call fcn.00599370
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x599df4
mov eax, dword [esp + 0x88]
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
mov dword [esp], ecx
mov dword [esp + 4], edx
lea ecx, [0x67991c]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0xffffffff
call fcn.004ba2a0
mov eax, dword [esp + 0x18]
mov dword [esp + 0x44], eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x28], ecx
xor edx, edx
jmp 0x5998cf
mov ebx, dword [esp + 0x40]
lea edx, [ebx + 1]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x28]
cmp edx, ecx
jge 0x599ded
mov dword [esp + 0x40], edx
lea ecx, [eax + edx*8]
mov ebx, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [esp], ebx
mov dword [esp + 4], ecx
call fcn.004bb5f0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.004bae50
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
test eax, eax
je 0x5998c0
cmp eax, 1
jne 0x59991d
cmp byte [ecx], 0x2a
je 0x599d48
mov dword [esp + 0x38], eax
mov dword [esp + 0x54], ecx
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004ca940
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x5999e7
mov ecx, dword [esp + 0x88]
mov edx, dword [ecx + 0x28]
lea ebx, [edx + 1]
mov ebp, dword [ecx + 0x24]
mov esi, dword [ecx + 0x2c]
cmp ebx, esi
ja 0x599989
lea ebx, [edx + 1]
mov dword [ecx + 0x28], ebx
lea ebx, [ebp + edx*8]
lea esi, [0x6cb950]
mov dword [ebx], esi
mov ebx, dword [0x7e34e0]
lea edi, [ebp + edx*8 + 4]
test ebx, ebx
jne 0x59997f
mov dword [edi], eax
jmp 0x5998c0
call fcn.0045c920
jmp 0x5998c0
mov dword [esp + 0x50], eax
lea eax, [0x64ce80]
mov dword [esp], eax
mov dword [esp + 4], ebp
mov dword [esp + 8], edx
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
call fcn.004441e0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x88]
mov dword [ebx + 0x2c], edx
mov edx, dword [0x7e34e0]
test edx, edx
jne 0x5999dd
mov dword [ebx + 0x24], eax
mov edx, ecx
mov ebp, eax
mov eax, dword [esp + 0x50]
mov ecx, ebx
jmp 0x599958
lea edi, [ebx + 0x24]
call fcn.0045c920
jmp 0x5999ce
mov eax, dword [esp + 0x54]
mov dword [esp], eax
mov ecx, dword [esp + 0x38]
mov dword [esp + 4], ecx
call fcn.004cbad0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x4c], edx
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x30], ebx
mov ebp, dword [esp + 0x18]
test ebp, ebp
jne 0x599d3b
test eax, eax
je 0x5998c0
cmp byte [ecx], 0x5b
jne 0x599d32
lea ebp, [eax + ecx - 1]
cmp byte [ebp], 0x5d
jne 0x599d32
lea ebp, [eax - 1]
cmp ebp, 1
jb 0x599e57
add eax, 0xfffffffe
mov ebp, eax
neg eax
sar eax, 0x1f
and eax, 1
add eax, ecx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x48], eax
mov dword [esp], eax
mov dword [esp + 4], ebp
call fcn.004ca780
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
test eax, eax
jne 0x599c33
mov edx, dword [esp + 0x2c]
test edx, edx
je 0x5998c0
cmp edx, 2
jge 0x599c07
xor eax, eax
test al, al
je 0x599bfc
dec edx
mov ebx, edx
neg edx
sar edx, 0x1f
and edx, 1
mov ebp, dword [esp + 0x48]
add edx, ebp
test ebx, ebx
jbe 0x599e4e
movzx ecx, byte [edx]
cmp cl, 0x2e
jne 0x599bbd
lea edi, [esp + 0x5c]
mov eax, 0
call fcn.0045cbbb
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], ebx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x68], ecx
setne cl
mov byte [esp + 0x6c], cl
lea ecx, [0x6cb970]
mov dword [esp], ecx
lea edx, [esp + 0x5c]
mov dword [esp + 4], edx
call fcn.0040a0f0
mov ecx, dword [esp + 0x88]
mov edx, dword [ecx + 0x34]
mov ebx, dword [ecx + 0x30]
mov ebp, dword [ecx + 0x38]
lea esi, [edx + 1]
mov eax, dword [esp + 0xc]
mov edi, ecx
mov ecx, dword [esp + 8]
cmp esi, ebp
ja 0x599b57
lea ebp, [edx + 1]
mov dword [edi + 0x34], ebp
lea ebp, [ebx + edx*8]
mov dword [ebp], ecx
mov ecx, dword [0x7e34e0]
lea edx, [ebx + edx*8 + 4]
test ecx, ecx
jne 0x599b4a
mov dword [edx], eax
jmp 0x5998c0
mov ecx, edi
mov edi, edx
call fcn.0045c920
mov edi, ecx
jmp 0x599b45
mov dword [esp + 0x58], eax
mov dword [esp + 0x3c], ecx
lea eax, [0x64ce80]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], esi
call fcn.004441e0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x88]
mov dword [ebx + 0x38], edx
mov edx, dword [0x7e34e0]
test edx, edx
jne 0x599bb3
mov dword [ebx + 0x30], eax
mov edi, ebx
mov edx, ecx
mov ebx, eax
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x3c]
jmp 0x599b29
lea edi, [ebx + 0x30]
call fcn.0045c920
jmp 0x599ba0
mov byte [esp + 0x27], cl
mov dword [esp], 0
lea eax, [0x67991e]
mov dword [esp + 4], eax
mov dword [esp + 8], 1
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ebx
call fcn.004475a0
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
movzx eax, byte [esp + 0x27]
cmp al, 0x2e
jmp 0x599ac5
mov ebx, edx
mov edx, dword [esp + 0x48]
jmp 0x599ab1
mov eax, dword [esp + 0x48]
mov dword [esp], eax
lea ecx, [0x679955]
mov dword [esp + 4], ecx
mov dword [esp + 8], 2
call fcn.004031b0
movzx eax, byte [esp + 0xc]
mov edx, dword [esp + 0x2c]
jmp 0x599a98
mov dword [esp + 0x34], ecx
lea edi, [esp + 0x70]
mov ebx, eax
xor eax, eax
call fcn.0045cbbb
mov dword [esp + 0x70], ebx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], edx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x7c], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x80], ecx
lea ecx, [0x6cb990]
mov dword [esp], ecx
lea edx, [esp + 0x70]
mov dword [esp + 4], edx
call fcn.0040a0f0
mov ecx, dword [esp + 0x88]
mov edx, dword [ecx + 0x28]
mov ebx, dword [ecx + 0x24]
mov ebp, dword [ecx + 0x2c]
lea esi, [edx + 1]
mov eax, dword [esp + 0xc]
mov edi, ecx
mov ecx, dword [esp + 8]
cmp ebp, esi
jb 0x599ccc
lea ebp, [edx + 1]
mov dword [edi + 0x28], ebp
lea ebp, [ebx + edx*8]
mov dword [ebp], ecx
mov ecx, dword [0x7e34e0]
lea edx, [ebx + edx*8 + 4]
test ecx, ecx
jne 0x599cbf
mov dword [edx], eax
jmp 0x5998c0
mov ecx, edi
mov edi, edx
call fcn.0045c920
mov edi, ecx
jmp 0x599cba
mov dword [esp + 0x58], eax
mov dword [esp + 0x3c], ecx
lea eax, [0x64ce80]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], esi
call fcn.004441e0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x88]
mov dword [ebx + 0x2c], edx
mov edx, dword [0x7e34e0]
test edx, edx
jne 0x599d28
mov dword [ebx + 0x24], eax
mov edi, ebx
mov edx, ecx
mov ebx, eax
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x3c]
jmp 0x599c9e
lea edi, [ebx + 0x24]
call fcn.0045c920
jmp 0x599d15
mov ebp, eax
mov eax, ecx
jmp 0x599a59
mov ebp, dword [esp + 0x38]
mov eax, dword [esp + 0x54]
jmp 0x599a59
lea eax, [0x63ea00]
mov dword [esp], eax
call fcn.0040c800
mov eax, dword [esp + 4]
lea ecx, [0x6cb930]
mov dword [eax], ecx
lea edx, [0x7e32f0]
mov dword [eax + 4], edx
mov ebx, dword [esp + 0x88]
mov dword [ebx + 0x28], 1
mov dword [ebx + 0x2c], 1
mov ebp, dword [0x7e34e0]
test ebp, ebp
jne 0x599de3
mov dword [ebx + 0x24], eax
lea eax, [0x63ea00]
mov dword [esp], eax
call fcn.0040c800
mov eax, dword [esp + 4]
lea ecx, [0x6cb930]
mov dword [eax], ecx
lea ecx, [0x7e32f0]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x88]
mov dword [ecx + 0x34], 1
mov dword [ecx + 0x38], 1
mov edx, dword [0x7e34e0]
test edx, edx
jne 0x599dd9
mov dword [ecx + 0x30], eax
add esp, 0x84
ret
lea edi, [ecx + 0x30]
call fcn.0045c920
jmp 0x599dd2
lea edi, [ebx + 0x24]
call fcn.0045c920
jmp 0x599d8d
add esp, 0x84
ret
mov ecx, dword [0x7e34e0]
test ecx, ecx
jne 0x599e0d
mov ecx, dword [esp + 0x88]
mov dword [ecx + 0x1c], eax
jmp 0x599871
mov ecx, dword [esp + 0x88]
lea edi, [ecx + 0x1c]
call fcn.0045c920
jmp 0x599871
mov ecx, dword [0x7e34e0]
test ecx, ecx
jne 0x599e3a
mov ecx, dword [esp + 0x88]
mov dword [ecx + 0x20], eax
jmp 0x599848
mov ecx, dword [esp + 0x88]
lea edi, [ecx + 0x20]
call fcn.0045c920
jmp 0x599848
xor eax, eax
mov ecx, ebx
call fcn.0045c9a0
mov eax, 1
mov ecx, ebp
call fcn.0045ca00
nop
call fcn.0045b380
jmp fcn.00599800