Function at 0x599790
Capabilities:
Reference http user-agent string
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [0x99504c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5999fe
sub esp, 0x64
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
lea eax, [esp + 0x54]
mov dword [esp], eax
mov dword [esp + 4], 0x20
call fcn.004cbd10
mov dword [esp + 0x39], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x68]
xor edx, edx
jmp 0x599854
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], ebp
mov dword [esp + 0x50], esi
add ebx, esi
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call fcn.004697f0
mov eax, dword [esp + 0x30]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x2c]
lea edx, [eax + 1]
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x68]
cmp eax, edx
jle 0x5999a3
mov dword [esp + 0x2c], edx
mov ebx, dword [ecx + edx*4]
test edx, edx
jle 0x5998ee
mov ebp, dword [esp + 0x54]
nop
nop
test ebp, ebp
je 0x599882
lea esi, [esp + 0x54]
cmp ebp, esi
je 0x59988a
jmp 0x5999e5
lea ebp, [esp + 0x54]
mov dword [esp + 0x54], ebp
mov ebp, dword [esp + 0x60]
mov esi, dword [esp + 0x5c]
inc esi
mov edi, dword [esp + 0x58]
cmp ebp, esi
jae 0x5998e5
mov dword [esp + 0x24], ebx
mov dword [esp], edi
mov dword [esp + 4], esi
mov dword [esp + 8], ebp
mov dword [esp + 0xc], 1
lea eax, [0x6f4820]
mov dword [esp + 0x10], eax
call fcn.0044e6e0
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x60], eax
mov dword [esp + 0x58], edi
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x5c], esi
mov byte [esi + edi - 1], 0x2e
lea eax, [esp + 0x39]
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], 0x13
mov ecx, ebx
sar ebx, 0x1f
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], 0xa
call fcn.004ab860
mov eax, dword [esp + 0x54]
nop
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
test eax, eax
je 0x59993d
lea ebx, [esp + 0x54]
cmp eax, ebx
je 0x599945
jmp 0x5999cd
lea eax, [esp + 0x54]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x60]
mov ebx, dword [esp + 0x5c]
lea ebp, [ebx + ecx]
mov esi, dword [esp + 0x58]
cmp eax, ebp
jae 0x59980f
mov dword [esp + 0x34], ebx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x4c], edx
mov dword [esp], esi
mov dword [esp + 4], ebp
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
lea eax, [0x6f4820]
mov dword [esp + 0x10], eax
call fcn.0044e6e0
mov esi, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x4c]
mov ebx, dword [esp + 0x34]
jmp 0x59980f
mov eax, dword [esp + 0x58]
mov ecx, eax
neg eax
mov edx, dword [esp + 0x5c]
cmp edx, eax
ja 0x5999bf
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], edx
add esp, 0x64
ret
test ecx, ecx
je 0x5999c8
call fcn.0045ff10
call fcn.0045ff50
lea eax, [0x6f44e0]
mov dword [esp], eax
lea eax, [0x7b028c]
mov dword [esp + 4], eax
call fcn.00438b10
lea eax, [0x6f44e0]
mov dword [esp], eax
lea eax, [0x7b028c]
mov dword [esp + 4], eax
call fcn.00438b10
nop
call fcn.00467a60
jmp fcn.00599790