Function at 0x5035a0
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]
lea eax, [esp - 0x178]
cmp eax, dword [ecx + 8]
jbe 0x504318
sub esp, 0x1f8
lea edi, [esp + 0x204]
xor eax, eax
call fcn.004690fb
mov ecx, dword [esp + 0x1fc]
mov dword [esp], ecx
mov edx, dword [esp + 0x200]
mov dword [esp + 4], edx
mov byte [esp + 8], 0x25
call fcn.00403550
mov ecx, dword [esp + 0xc]
cmp ecx, 0xffffffff
je 0x5036bc
mov edx, dword [esp + 0x200]
cmp edx, ecx
jb 0x504312
lea eax, [ecx + 1]
cmp edx, eax
jb 0x50430b
mov ebx, edx
sub edx, ecx
lea ebp, [edx - 1]
mov esi, ebp
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and ebp, eax
mov eax, ebx
mov ebx, dword [esp + 0x1fc]
add ebp, ebx
cmp edx, 1
jne 0x5036d0
lea edi, [esp + 0x1e0]
xor eax, eax
call fcn.004690fa
mov dword [esp + 0x1e0], ebx
mov ecx, dword [esp + 0x200]
mov dword [esp + 0x1e4], ecx
lea ecx, [0x74624c]
mov dword [esp + 0x1e8], ecx
mov dword [esp + 0x1ec], 0x1f
lea edi, [esp + 0x204]
call fcn.004690fb
lea ecx, [0x71a160]
mov dword [esp], ecx
lea ecx, [esp + 0x1e0]
mov dword [esp + 4], ecx
call fcn.00409b00
mov ecx, dword [esp + 8]
lea edx, [0x7b0fd4]
mov dword [esp + 0x218], edx
mov dword [esp + 0x21c], ecx
add esp, 0x1f8
ret
mov eax, dword [esp + 0x200]
mov ebx, dword [esp + 0x1fc]
mov ecx, eax
xor esi, esi
xor ebp, ebp
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
cmp ecx, 2
jl 0x5037a6
cmp byte [ebx], 0x3a
jne 0x50379b
cmp byte [ebx + 1], 0x3a
jne 0x503790
lea edx, [ecx - 2]
mov edi, edx
neg edx
sar edx, 0x1f
and edx, 2
add edx, ebx
cmp ecx, 2
je 0x503727
xor ecx, ecx
jmp 0x5037af
mov ecx, dword [0x96e8c8]
mov dword [esp + 0x78], ecx
lea edi, [esp]
xor eax, eax
call fcn.004690fb
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], esi
call fcn.00504430
lea edi, [esp + 0xf4]
lea esi, [esp + 0x1c]
call fcn.004695de
lea edi, [esp + 0x204]
lea esi, [esp + 0xf4]
call fcn.004695de
mov dword [esp + 0x218], 0
mov dword [esp + 0x21c], 0
add esp, 0x1f8
ret
mov edi, ecx
mov edx, ebx
mov ecx, 0xffffffff
jmp 0x5037af
mov edi, ecx
mov edx, ebx
mov ecx, 0xffffffff
jmp 0x5037af
mov edi, ecx
mov edx, ebx
mov ecx, 0xffffffff
mov dword [esp + 0x30], esi
mov dword [esp + 0x70], ebp
mov dword [esp + 0x58], eax
xor eax, eax
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x58]
jmp 0x5037e0
mov ebx, dword [esp + 0x1fc]
mov dword [esp + 0x3c], ecx
mov edi, esi
mov ecx, edx
mov esi, dword [esp + 0x30]
mov edx, ebp
mov ebp, dword [esp + 0x70]
mov ebp, dword [esp + 0x3c]
cmp ebp, 0x10
jge 0x5038d6
mov dword [esp + 0x74], edx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x50], eax
xor eax, eax
mov dword [esp + 0x38], eax
xor eax, eax
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x50]
jmp 0x503b9b
mov ecx, dword [esp + 0x44]
mov esi, dword [esp + 0x30]
mov dword [esp + 0x34], edi
test ebp, ebp
je 0x50423d
cmp edi, ebp
jle 0x50383c
jbe 0x504302
lea esi, [edx + ebp]
cmp byte [esi], 0x2e
je 0x503cbb
mov esi, dword [esp + 0x30]
mov ebx, dword [esp + 0x48]
shr ebx, 8
mov edx, dword [esp + 0x3c]
mov byte [esp + edx + 0x60], bl
mov ebx, dword [esp + 0x48]
mov byte [esp + edx + 0x61], bl
cmp edi, ebp
jb 0x5042e5
sub edi, ebp
mov ebx, edi
xchg edi, ebx
neg ebx
xchg edi, ebx
sar edi, 0x1f
and edi, ebp
add edx, 2
mov ebp, dword [esp + 0x74]
lea esi, [ebp + edi]
test ebx, ebx
je 0x504227
cmp byte [esi], 0x3a
jne 0x504180
cmp ebx, 1
je 0x5040d9
lea esi, [ebx - 1]
lea ebp, [ebp + edi + 1]
test esi, esi
jbe 0x5042dc
cmp byte [ebp], 0x3a
jne 0x5038cb
test ecx, ecx
jge 0x504032
lea ecx, [ebx - 2]
mov esi, ecx
neg ecx
sar ecx, 0x1f
and ecx, 1
add ebp, ecx
cmp ebx, 2
je 0x50401a
mov ecx, edx
jmp 0x5037c7
mov ecx, edx
mov edx, dword [esp + 0x44]
jmp 0x5037c7
test edi, edi
jne 0x5039f9
cmp ebp, 0x10
jge 0x503972
test ecx, ecx
jl 0x5038f3
lea edx, [ebp - 1]
jmp 0x503b2d
lea edi, [esp + 0x1e0]
xor eax, eax
call fcn.004690fa
mov dword [esp + 0x1e0], ebx
mov ecx, dword [esp + 0x200]
mov dword [esp + 0x1e4], ecx
lea ecx, [0x7426cd]
mov dword [esp + 0x1e8], ecx
mov dword [esp + 0x1ec], 0x18
lea edi, [esp + 0x204]
call fcn.004690fb
lea ecx, [0x71a160]
mov dword [esp], ecx
lea ecx, [esp + 0x1e0]
mov dword [esp + 4], ecx
call fcn.00409b00
mov ecx, dword [esp + 8]
lea edx, [0x7b0fd4]
mov dword [esp + 0x218], edx
mov dword [esp + 0x21c], ecx
add esp, 0x1f8
ret
test ecx, ecx
jl 0x503a9c
lea edi, [esp + 0x1e0]
xor eax, eax
call fcn.004690fa
mov dword [esp + 0x1e0], ebx
mov ecx, dword [esp + 0x200]
mov dword [esp + 0x1e4], ecx
lea ecx, [0x74dc86]
mov dword [esp + 0x1e8], ecx
mov dword [esp + 0x1ec], 0x31
lea edi, [esp + 0x204]
call fcn.004690fb
lea ecx, [0x71a160]
mov dword [esp], ecx
lea ecx, [esp + 0x1e0]
mov dword [esp + 4], ecx
call fcn.00409b00
mov ecx, dword [esp + 8]
lea edx, [0x7b0fd4]
mov dword [esp + 0x218], edx
mov dword [esp + 0x21c], ecx
add esp, 0x1f8
ret
mov dword [esp + 0x34], edi
lea edi, [esp + 0x108]
mov ebp, eax
xor eax, eax
call fcn.004690fa
mov dword [esp + 0x108], ebx
mov dword [esp + 0x10c], ebp
lea ecx, [0x745b5a]
mov dword [esp + 0x110], ecx
mov dword [esp + 0x114], 0x1e
mov dword [esp + 0x118], edx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x11c], ecx
lea edi, [esp + 0x1e0]
lea esi, [esp + 0x108]
call fcn.004695d4
lea edi, [esp + 0x204]
call fcn.004690fb
lea ecx, [0x71a160]
mov dword [esp], ecx
lea ecx, [esp + 0x1e0]
mov dword [esp + 4], ecx
call fcn.00409b00
mov ecx, dword [esp + 8]
lea edx, [0x7b0fd4]
mov dword [esp + 0x218], edx
mov dword [esp + 0x21c], ecx
add esp, 0x1f8
ret
lea edi, [esp]
lea esi, [esp + 0x60]
call fcn.004695e8
call fcn.00502b30
lea edi, [esp + 0xf4]
lea esi, [esp + 0x10]
call fcn.004695de
lea edi, [esp]
lea esi, [esp + 0xf4]
call fcn.004695de
mov eax, dword [esp + 0x70]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x18], eax
call fcn.00504430
lea edi, [esp + 0xe0]
lea esi, [esp + 0x1c]
call fcn.004695de
lea edi, [esp + 0x204]
lea esi, [esp + 0xe0]
call fcn.004695de
mov dword [esp + 0x218], 0
mov dword [esp + 0x21c], 0
add esp, 0x1f8
ret
movzx ebx, byte [esp + eax + 0x60]
mov byte [esp + edx + 0x70], bl
lea edx, [eax - 1]
cmp ecx, edx
jg 0x503b44
mov eax, edx
sub edx, ebp
cmp eax, 0x10
jae 0x503b78
lea ebx, [edx + 0x10]
cmp ebx, 0x10
jb 0x503b21
jmp 0x503b6c
mov edx, ecx
sub ecx, ebp
lea ebx, [ecx + 0xf]
jmp 0x503b53
mov byte [esp + ebx + 0x60], 0
dec ebx
cmp edx, ebx
jg 0x503a9c
cmp ebx, 0x10
jb 0x503b4d
mov eax, ebx
mov ecx, 0x10
call fcn.00468ed0
mov eax, ebx
mov ecx, 0x10
call fcn.00468ed0
mov ecx, 0x10
call fcn.00468ed0
inc ebp
mov ecx, dword [esp + 0x44]
mov esi, dword [esp + 0x30]
mov dword [esp + 0x38], ebp
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x74]
mov ebp, dword [esp + 0x3c]
mov ebp, dword [esp + 0x38]
cmp edi, ebp
jle 0x503816
movzx esi, byte [edx + ebp]
lea ecx, [esi - 0x30]
cmp cl, 9
ja 0x503bc9
mov esi, ebx
mov ebx, dword [esp + 0x48]
shl ebx, 4
movzx ecx, cl
add ebx, ecx
mov ecx, edx
mov edx, ebx
mov ebx, esi
jmp 0x503c0e
lea ecx, [esi - 0x61]
cmp cl, 5
ja 0x503bef
mov ebx, dword [esp + 0x48]
shl ebx, 4
add esi, 0xffffffa9
xchg esi, eax
movzx eax, al
xchg esi, eax
add ebx, esi
mov ecx, edx
mov edx, ebx
mov ebx, dword [esp + 0x1fc]
jmp 0x503c0e
lea ecx, [esi - 0x41]
cmp cl, 5
ja 0x50380e
mov ecx, edx
mov edx, dword [esp + 0x48]
shl edx, 4
add esi, 0xffffffc9
xchg esi, eax
movzx eax, al
xchg esi, eax
add edx, esi
cmp edx, 0xffff
jbe 0x503b82
mov edx, edi
lea edi, [esp + 0x1c8]
mov ebp, eax
xor eax, eax
call fcn.004690fa
mov dword [esp + 0x1c8], ebx
mov dword [esp + 0x1cc], ebp
lea ecx, [0x744087]
mov dword [esp + 0x1d0], ecx
mov dword [esp + 0x1d4], 0x1b
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x1d8], ecx
mov dword [esp + 0x1dc], edx
lea edi, [esp + 0x1e0]
lea esi, [esp + 0x1c8]
call fcn.004695d4
lea edi, [esp + 0x204]
call fcn.004690fb
lea ecx, [0x71a160]
mov dword [esp], ecx
lea ecx, [esp + 0x1e0]
mov dword [esp + 4], ecx
call fcn.00409b00
mov ecx, dword [esp + 8]
lea edx, [0x7b0fd4]
mov dword [esp + 0x218], edx
mov dword [esp + 0x21c], ecx
add esp, 0x1f8
ret
test ecx, ecx
jge 0x503d6f
mov ebp, dword [esp + 0x3c]
cmp ebp, 0xc
je 0x503d73
lea edi, [esp + 0x198]
mov ebp, eax
xor eax, eax
call fcn.004690fa
mov dword [esp + 0x198], ebx
mov dword [esp + 0x19c], ebp
lea ecx, [0x7511e4]
mov dword [esp + 0x1a0], ecx
mov dword [esp + 0x1a4], 0x44
mov dword [esp + 0x1a8], edx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x1ac], ecx
lea edi, [esp + 0x1e0]
lea esi, [esp + 0x198]
call fcn.004695d4
lea edi, [esp + 0x204]
call fcn.004690fb
lea ecx, [0x71a160]
mov dword [esp], ecx
lea ecx, [esp + 0x1e0]
mov dword [esp + 4], ecx
call fcn.00409b00
mov ecx, dword [esp + 8]
lea edx, [0x7b0fd4]
mov dword [esp + 0x218], edx
mov dword [esp + 0x21c], ecx
add esp, 0x1f8
ret
mov ebp, dword [esp + 0x3c]
lea esi, [ebp + 4]
cmp esi, 0x10
jg 0x503f7b
mov dword [esp + 0x4c], esi
xor eax, eax
lea edi, [esp + 0xf4]
call fcn.004690fb
mov dword [esp], edx
mov ecx, dword [esp + 0x34]
mov dword [esp + 4], ecx
call fcn.00503190
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x40], ecx
mov edx, dword [esp + 0x20]
lea edi, [esp + 0xf4]
lea esi, [esp + 8]
call fcn.004695de
lea edi, [esp + 0x7c]
lea esi, [esp + 0xf4]
call fcn.004695de
mov ecx, dword [esp + 0x40]
test ecx, ecx
jne 0x503ebc
lea edi, [esp + 0xcc]
lea esi, [esp + 0xf4]
call fcn.004695de
mov ecx, dword [esp + 0x3c]
lea eax, [ecx + 2]
mov edx, dword [esp + 0xd4]
mov ebx, dword [esp + 0xd8]
shl ebx, 8
shr edx, 0x18
or edx, ebx
mov byte [esp + ecx + 0x60], dl
lea edi, [esp + 0xb8]
lea esi, [esp + 0x7c]
call fcn.004695de
mov ecx, dword [esp + 0xc0]
mov edx, dword [esp + 0xc4]
shr ecx, 0x10
shl edx, 0x10
or edx, ecx
mov ecx, dword [esp + 0x3c]
mov byte [esp + ecx + 0x61], dl
lea edi, [esp + 0xa4]
lea esi, [esp + 0x7c]
call fcn.004695de
mov ecx, dword [esp + 0xac]
mov edx, dword [esp + 0xb0]
shr ecx, 8
shl edx, 0x18
or ecx, edx
cmp eax, 0x10
jae 0x5042f8
mov edx, dword [esp + 0x3c]
mov byte [esp + edx + 0x62], cl
lea eax, [edx + 3]
lea edi, [esp + 0x90]
lea esi, [esp + 0x7c]
call fcn.004695de
cmp eax, 0x10
jae 0x5042ee
mov eax, dword [esp + 0x98]
mov byte [esp + edx + 0x63], al
mov eax, dword [esp + 0x200]
mov ebx, dword [esp + 0x1fc]
mov esi, dword [esp + 0x30]
xor edi, edi
xor edx, edx
mov ebp, dword [esp + 0x4c]
mov ecx, dword [esp + 0x44]
jmp 0x5038d6
mov eax, dword [ecx + 0x10]
mov dword [esp], edx
call eax
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp + 0x4c], ecx
lea edi, [esp + 0x168]
mov edx, eax
xor eax, eax
call fcn.004690fa
mov ecx, dword [esp + 0x1fc]
mov dword [esp + 0x168], ecx
mov ecx, dword [esp + 0x200]
mov dword [esp + 0x16c], ecx
mov dword [esp + 0x170], edx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x174], ecx
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x178], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x17c], ecx
lea edi, [esp + 0x1e0]
lea esi, [esp + 0x168]
call fcn.004695d4
lea edi, [esp + 0x204]
call fcn.004690fb
lea eax, [0x71a160]
mov dword [esp], eax
lea eax, [esp + 0x1e0]
mov dword [esp + 4], eax
call fcn.00409b00
mov eax, dword [esp + 8]
lea ecx, [0x7b0fd4]
mov dword [esp + 0x218], ecx
mov dword [esp + 0x21c], eax
add esp, 0x1f8
ret
lea edi, [esp + 0x180]
mov ebp, eax
xor eax, eax
call fcn.004690fa
mov dword [esp + 0x180], ebx
mov dword [esp + 0x184], ebp
lea ecx, [0x75148c]
mov dword [esp + 0x188], ecx
mov dword [esp + 0x18c], 0x45
mov dword [esp + 0x190], edx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x194], ecx
lea edi, [esp + 0x1e0]
lea esi, [esp + 0x180]
call fcn.004695d4
lea edi, [esp + 0x204]
call fcn.004690fb
lea ecx, [0x71a160]
mov dword [esp], ecx
lea ecx, [esp + 0x1e0]
mov dword [esp + 4], ecx
call fcn.00409b00
mov ecx, dword [esp + 8]
lea edx, [0x7b0fd4]
mov dword [esp + 0x218], edx
mov dword [esp + 0x21c], ecx
add esp, 0x1f8
ret
mov ebx, dword [esp + 0x1fc]
mov edi, esi
mov ecx, edx
mov esi, dword [esp + 0x30]
mov edx, ebp
mov ebp, ecx
jmp 0x5038d6
lea edi, [esp + 0x120]
xor eax, eax
call fcn.004690fa
mov ecx, dword [esp + 0x1fc]
mov dword [esp + 0x120], ecx
mov ecx, dword [esp + 0x200]
mov dword [esp + 0x124], ecx
lea ecx, [0x741460]
mov dword [esp + 0x128], ecx
mov dword [esp + 0x12c], 0x16
mov dword [esp + 0x130], ebp
mov dword [esp + 0x134], esi
lea edi, [esp + 0x1e0]
lea esi, [esp + 0x120]
call fcn.004695d4
lea edi, [esp + 0x204]
call fcn.004690fb
lea ecx, [0x71a160]
mov dword [esp], ecx
lea ecx, [esp + 0x1e0]
mov dword [esp + 4], ecx
call fcn.00409b00
mov ecx, dword [esp + 8]
lea edx, [0x7b0fd4]
mov dword [esp + 0x218], edx
mov dword [esp + 0x21c], ecx
add esp, 0x1f8
ret
lea edi, [esp + 0x138]
xor eax, eax
call fcn.004690fa
mov ecx, dword [esp + 0x1fc]
mov dword [esp + 0x138], ecx
mov ecx, dword [esp + 0x200]
mov dword [esp + 0x13c], ecx
lea ecx, [0x74b02e]
mov dword [esp + 0x140], ecx
mov dword [esp + 0x144], 0x29
mov dword [esp + 0x148], esi
mov dword [esp + 0x14c], ebx
lea edi, [esp + 0x1e0]
lea esi, [esp + 0x138]
call fcn.004695d4
lea edi, [esp + 0x204]
call fcn.004690fb
lea ecx, [0x71a160]
mov dword [esp], ecx
lea ecx, [esp + 0x1e0]
mov dword [esp + 4], ecx
call fcn.00409b00
mov ecx, dword [esp + 8]
lea edx, [0x7b0fd4]
mov dword [esp + 0x218], edx
mov dword [esp + 0x21c], ecx
add esp, 0x1f8
ret
lea edi, [esp + 0x150]
xor eax, eax
call fcn.004690fa
mov ecx, dword [esp + 0x1fc]
mov dword [esp + 0x150], ecx
mov ecx, dword [esp + 0x200]
mov dword [esp + 0x154], ecx
lea ecx, [0x746a72]
mov dword [esp + 0x158], ecx
mov dword [esp + 0x15c], 0x20
mov dword [esp + 0x160], esi
mov dword [esp + 0x164], ebx
lea edi, [esp + 0x1e0]
lea esi, [esp + 0x150]
call fcn.004695d4
lea edi, [esp + 0x204]
call fcn.004690fb
lea ecx, [0x71a160]
mov dword [esp], ecx
lea ecx, [esp + 0x1e0]
mov dword [esp + 4], ecx
call fcn.00409b00
mov ecx, dword [esp + 8]
lea edx, [0x7b0fd4]
mov dword [esp + 0x218], edx
mov dword [esp + 0x21c], ecx
add esp, 0x1f8
ret
mov edi, ebx
mov ebp, edx
mov ebx, dword [esp + 0x1fc]
mov edx, esi
mov esi, dword [esp + 0x30]
jmp 0x5038d6
lea edi, [esp + 0x1b0]
mov ebp, eax
xor eax, eax
call fcn.004690fa
mov dword [esp + 0x1b0], ebx
mov dword [esp + 0x1b4], ebp
lea ecx, [0x74f5d3]
mov dword [esp + 0x1b8], ecx
mov dword [esp + 0x1bc], 0x37
mov dword [esp + 0x1c0], edx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x1c4], ecx
lea edi, [esp + 0x1e0]
lea esi, [esp + 0x1b0]
call fcn.004695d4
lea edi, [esp + 0x204]
call fcn.004690fb
lea ecx, [0x71a160]
mov dword [esp], ecx
lea ecx, [esp + 0x1e0]
mov dword [esp + 4], ecx
call fcn.00409b00
mov ecx, dword [esp + 8]
lea edx, [0x7b0fd4]
mov dword [esp + 0x218], edx
mov dword [esp + 0x21c], ecx
add esp, 0x1f8
ret
xor eax, eax
mov ecx, eax
call fcn.00468ed0
mov eax, ebp
mov ecx, edi
call fcn.00468f30
mov ecx, 0x10
call fcn.00468ed0
mov ecx, 0x10
call fcn.00468ed0
mov eax, ebp
mov ecx, edi
call fcn.00468ed0
mov ecx, edx
call fcn.00468f30
call fcn.00468ef0
nop
call fcn.00467a60
jmp fcn.005035a0