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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x416bf8
sub esp, 0x50
mov eax, dword fs:[0x14]
mov eax, dword [eax]
mov ecx, dword [eax + 0x18]
nop
inc dword [ecx + 0x78]
mov ecx, dword [eax + 0x18]
test byte [eax], al
mov eax, dword fs:[0x14]
mov eax, dword [eax]
cmp dword [ecx], eax
je 0x41664f
mov edx, dword [ecx + 0x78]
cmp edx, 1
jg 0x41664f
mov ebx, dword [ecx + 0x74]
test ebx, ebx
jne 0x41664f
nop
lea ebx, [edx - 1]
mov dword [ecx + 0x78], ebx
cmp edx, 1
jne 0x416677
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x416677
mov dword [eax + 8], 0xfffffade
jmp 0x416677
nop
mov edx, dword [ecx + 0x78]
lea ebx, [edx - 1]
mov dword [ecx + 0x78], ebx
cmp edx, 1
jne 0x41666d
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x41666d
mov dword [eax + 8], 0xfffffade
add esp, 0x50
ret
inc dword [0x9047dc]
mov eax, dword [esp + 0x54]
mov dword [esp], eax
mov ecx, dword [esp + 0x5c]
mov dword [esp + 8], ecx
mov edx, dword [esp + 0x58]
mov dword [esp + 4], edx
mov ebx, dword [esp + 0x60]
mov dword [esp + 0xc], ebx
call fcn.00416480
movzx eax, byte [esp + 0x10]
test al, al
jne 0x4166a8
xor eax, eax
jmp 0x4166b4
call fcn.00423290
cmp dword [esp], 0xffffffff
setne al
test al, al
jne 0x416671
lea eax, [0x904c78]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.004479f0
mov eax, dword [esp + 0x54]
mov dword [esp], eax
mov ecx, dword [esp + 0x5c]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x58]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x60]
mov dword [esp + 0xc], ecx
call fcn.00416480
movzx eax, byte [esp + 0x10]
test al, al
je 0x416815
mov eax, dword [esp + 0x54]
cmp eax, 2
sete al
mov byte [0x904c8c], al
mov eax, dword [0x92b778]
cmp eax, 1
jne 0x41672e
mov eax, 1
jmp 0x41673c
cmp eax, 2
jne 0x41673a
mov eax, 2
jmp 0x41673c
xor eax, eax
mov dword [esp + 0x14], eax
lea ecx, [0x8cd238]
mov dword [esp], ecx
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.004479f0
lea eax, [0x8cd258]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.004479f0
movzx eax, byte [0x90f8e8]
test al, al
je 0x4167fd
nop
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov eax, dword [0x90f918]
mov ecx, dword [0x90f91c]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
mov byte [esp], 7
mov dword [esp + 4], 3
lea eax, [esp + 0x34]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004554a0
mov eax, dword [0x90f918]
add eax, 1
mov ecx, dword [0x90f91c]
mov dword [0x90f918], eax
adc ecx, 0
mov dword [0x90f91c], ecx
mov eax, dword [0x9043b8]
mov dword [esp + 0x44], eax
mov ecx, dword [0x9043bc]
mov dword [esp + 0x28], ecx
xor edx, edx
jmp 0x416844
nop
lea eax, [0x904c78]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.00447d00
add esp, 0x50
ret
mov ebx, dword [esp + 0x24]
lea edx, [ebx + 1]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x28]
cmp edx, ecx
jge 0x416879
mov dword [esp + 0x24], edx
mov ecx, dword [eax + edx*4]
mov dword [esp + 0x3c], ecx
mov ebx, dword [ecx + 0x30]
test byte [ebx], al
add ebx, 0x24c
mov dword [esp], ebx
call fcn.00401c50
mov eax, dword [esp + 4]
mov ecx, dword [0x90b330]
cmp ecx, eax
je 0x416835
jmp 0x416b41
call fcn.00418610
lea eax, [0x711ddc]
mov dword [esp], eax
call fcn.00461030
mov eax, dword [0x92b2fc]
mov dword [0x904cb8], eax
mov dword [0x904cbc], eax
mov ecx, dword [0x92b318]
cmp ecx, eax
jge 0x4168ae
mov dword [0x904cb8], ecx
lea eax, [0x92bef0]
mov dword [esp], eax
call fcn.00401e90
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov dword [0x904cf4], eax
mov dword [0x904cf0], ecx
mov dword [0x904ce0], 0
mov dword [0x904ce4], 0
mov eax, dword [esp + 0x14]
mov dword [0x904c88], eax
call fcn.004633d0
mov eax, dword [esp + 4]
mov ecx, dword [esp]
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ecx
mov dword [0x904cc4], eax
mov dword [0x904cc0], ecx
mov dword [0x904cec], eax
mov dword [0x904ce8], ecx
movzx eax, byte [0x90f8e8]
test al, al
je 0x41696f
nop
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], 1
mov dword [esp + 0x38], 0
mov byte [esp], 9
mov dword [esp + 4], 0xffffffff
lea eax, [esp + 0x34]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004554a0
lea eax, [0x711ea8]
mov dword [esp], eax
call fcn.00461030
lea eax, [0x711de0]
mov dword [esp], eax
call fcn.00461030
call fcn.00419630
inc dword [0x904cb4]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov edx, dword [0x92b2fc]
lea ebx, [0x92be80]
mov dword [esp], ebx
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [esp + 0xc], edx
call fcn.0041d950
mov eax, dword [0x92bee0]
mov ecx, dword [0x92bee4]
mov dword [0x904d08], eax
mov dword [0x904d0c], ecx
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4169e7
mov byte [esp], 0
call fcn.00443ca0
lea eax, [0x92b2f8]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00401e60
mov eax, dword [0x92b2f8]
cmp eax, 1
jne 0x416a0f
mov eax, 1
jmp 0x416a15
cmp eax, 2
sete al
mov byte [0x92b5b4], al
test al, al
je 0x416a26
mov eax, 1
jmp 0x416a2d
movzx eax, byte [0x92b5b5]
mov byte [0x92b5b0], al
nop
mov dword [0x904c38], 0xffffffff
mov dword [0x904c44], 0xffffffff
call fcn.00419c20
call fcn.0041d860
lea eax, [0x92b2f0]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00401e60
mov eax, dword fs:[0x14]
mov eax, dword [eax]
mov ecx, dword [eax + 0x18]
nop
inc dword [ecx + 0x78]
mov eax, dword [eax + 0x18]
mov dword [esp + 0x40], eax
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
lea ecx, [0x416c10]
mov dword [esp + 0x48], ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x4c], ecx
lea ecx, [esp + 0x48]
mov dword [esp], ecx
call fcn.00461030
lea eax, [0x8cd258]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.00447d00
nop
mov eax, dword fs:[0x14]
mov eax, dword [eax]
mov ecx, dword [esp + 0x40]
mov edx, dword [ecx + 0x78]
lea ebx, [edx - 1]
mov dword [ecx + 0x78], ebx
cmp edx, 1
jne 0x416b0b
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x416b03
mov dword [eax + 8], 0xfffffade
mov eax, dword [esp + 0x14]
test eax, eax
jmp 0x416b11
mov eax, dword [esp + 0x14]
test eax, eax
jmp 0x416b11
mov eax, dword [esp + 0x14]
test eax, eax
je 0x416b21
lea eax, [0x711df0]
mov dword [esp], eax
call fcn.00460fd0
nop
lea eax, [0x904c78]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.00447d00
add esp, 0x50
ret
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x3c]
mov eax, dword [eax]
mov dword [esp + 0x1c], eax
call fcn.00437330
lea eax, [0x6f6004]
mov dword [esp], eax
mov dword [esp + 4], 0xb
call fcn.00437f60
mov eax, dword [esp + 0x1c]
mov ecx, eax
sar eax, 0x1f
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.00437d60
lea eax, [0x6f5450]
mov dword [esp], eax
mov dword [esp + 4], 0xa
call fcn.00437f60
mov dword [esp + 4], 0
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call fcn.00437c00
lea eax, [0x6f6837]
mov dword [esp], eax
mov dword [esp + 4], 0xd
call fcn.00437f60
mov dword [esp + 4], 0
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call fcn.00437c00
call fcn.00437550
call fcn.004373a0
lea eax, [0x6fa329]
mov dword [esp], eax
mov dword [esp + 4], 0x14
call fcn.00435820
nop
call fcn.00461140
jmp fcn.004165e0