Function at 0x470878
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e3dd7
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x224
push ebx
push esi
push edi
mov eax, dword [0x524330]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1cc], ecx
push ecx
mov ecx, esp
mov dword [ebp - 0x84], esp
push 0x4febc6
call fcn.00403241
push 4
lea eax, [ebp - 0x18]
push eax
call fcn.004596cf
add esp, 0xc
mov dword [ebp - 0x1d0], eax
and dword [ebp - 4], 0
call fcn.00498191
push eax
lea ecx, [ebp - 0x14]
call fcn.00403ced
mov byte [ebp - 4], 1
lea eax, [ebp - 0x88]
push eax
mov ecx, dword [ebp - 0x1cc]
call fcn.00470633
mov dword [ebp - 0x1d4], eax
mov eax, dword [ebp - 0x1d4]
mov dword [ebp - 0xd4], eax
mov byte [ebp - 4], 2
push dword [ebp - 0xd4]
lea ecx, [ebp - 0x14]
call fcn.00403d36
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x88]
sub eax, 0x10
mov dword [ebp - 0xd8], eax
mov ecx, dword [ebp - 0xd8]
call fcn.0040110c
mov eax, dword [ebp - 0x18]
mov eax, dword [eax - 0xc]
mov dword [ebp - 0xdc], eax
xor eax, eax
cmp dword [ebp - 0xdc], 0
sete al
movzx eax, al
test eax, eax
jne 0x470977
push 0
push 0x4fed70
mov ecx, dword [ebp - 0x1cc]
call fcn.0040355e
test eax, eax
jl 0x470bd1
movzx eax, byte [0x5222a6]
test eax, eax
je 0x470a54
mov eax, dword [0x525918]
mov eax, dword [eax - 0xc]
mov dword [ebp - 0xf0], eax
xor eax, eax
cmp dword [ebp - 0xf0], 0
sete al
movzx eax, al
test eax, eax
je 0x470a54
mov dword [ebp - 0x20], 0x400
push dword [ebp - 0x20]
call fcn.00498154
pop ecx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x1c]
push 0
call sub.urlmon.dll_ObtainUserAgentString
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jl 0x470a54
cmp dword [ebp - 0x1c], 0
jne 0x4709f0
and dword [ebp - 0xf4], 0
jmp 0x470a41
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x1d8], eax
mov eax, dword [ebp - 0x1d8]
inc eax
mov dword [ebp - 0x1dc], eax
mov eax, dword [ebp - 0x1d8]
mov al, byte [eax]
mov byte [ebp - 0x1dd], al
inc dword [ebp - 0x1d8]
cmp byte [ebp - 0x1dd], 0
jne 0x470a06
mov eax, dword [ebp - 0x1d8]
sub eax, dword [ebp - 0x1dc]
mov dword [ebp - 0x1e4], eax
mov eax, dword [ebp - 0x1e4]
mov dword [ebp - 0xf4], eax
push dword [ebp - 0xf4]
push dword [ebp - 0x1c]
mov ecx, 0x525918
call fcn.00403e1c
movzx eax, byte [0x5222a6]
test eax, eax
je 0x470b1e
mov eax, dword [0x525918]
mov eax, dword [eax - 0xc]
mov dword [ebp - 0xf8], eax
xor eax, eax
cmp dword [ebp - 0xf8], 0
sete al
movzx eax, al
test eax, eax
jne 0x470b1e
push ecx
mov eax, esp
mov dword [ebp - 0x90], esp
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x14]
sub eax, 0x10
mov dword [ebp - 0xfc], eax
push dword [ebp - 0xfc]
call fcn.004042f4
pop ecx
mov dword [ebp - 0x100], eax
mov eax, dword [ebp - 0x100]
add eax, 0x10
mov ecx, dword [ebp - 0x104]
mov dword [ecx], eax
mov byte [ebp - 4], 3
push ecx
mov eax, esp
mov dword [ebp - 0x94], esp
mov dword [ebp - 0x110], eax
mov eax, dword [0x525918]
sub eax, 0x10
mov dword [ebp - 0x108], eax
push dword [ebp - 0x108]
call fcn.004042f4
pop ecx
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp - 0x10c]
add eax, 0x10
mov ecx, dword [ebp - 0x110]
mov dword [ecx], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1cc]
call fcn.0047079b
jmp 0x470bcc
lea ecx, [ebp - 0x40]
call fcn.004692b0
mov byte [ebp - 4], 4
push 0
push 0
push ecx
mov eax, esp
mov dword [ebp - 0x98], esp
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp - 0x1cc]
mov eax, dword [eax + 0x18]
sub eax, 0x10
mov dword [ebp - 0x114], eax
push dword [ebp - 0x114]
call fcn.004042f4
pop ecx
mov dword [ebp - 0x118], eax
mov eax, dword [ebp - 0x118]
add eax, 0x10
mov ecx, dword [ebp - 0x11c]
mov dword [ecx], eax
mov byte [ebp - 4], 5
push ecx
mov eax, esp
mov dword [ebp - 0x9c], esp
mov dword [ebp - 0x128], eax
mov eax, dword [ebp - 0x14]
sub eax, 0x10
mov dword [ebp - 0x120], eax
push dword [ebp - 0x120]
call fcn.004042f4
pop ecx
mov dword [ebp - 0x124], eax
mov eax, dword [ebp - 0x124]
add eax, 0x10
mov ecx, dword [ebp - 0x128]
mov dword [ecx], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
call fcn.004692e6
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.004692d4
jmp 0x471219
and dword [ebp - 0x4c], 0
lea eax, [ebp - 0x4c]
push eax
push 0x4fed88
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x18]
call fcn.00449296
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x18]
sub eax, 0x10
mov dword [ebp - 0x12c], eax
push dword [ebp - 0x12c]
call fcn.004042f4
pop ecx
mov dword [ebp - 0x130], eax
mov eax, dword [ebp - 0x130]
add eax, 0x10
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x48]
mov eax, dword [eax - 0xc]
mov dword [ebp - 0x134], eax
xor eax, eax
cmp dword [ebp - 0x134], 0
sete al
movzx eax, al
test eax, eax
jne 0x470ca6
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x44]
call fcn.00403d36
lea eax, [ebp - 0x4c]
push eax
push 0x4fed8c
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebp - 0x18]
call fcn.00449296
mov dword [ebp - 0x1e8], eax
mov eax, dword [ebp - 0x1e8]
mov dword [ebp - 0x138], eax
mov byte [ebp - 4], 8
push dword [ebp - 0x138]
lea ecx, [ebp - 0x48]
call fcn.00403d36
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0xa0]
sub eax, 0x10
mov dword [ebp - 0x13c], eax
mov ecx, dword [ebp - 0x13c]
call fcn.0040110c
jmp 0x470c1c
mov eax, dword [ebp - 0x14]
mov eax, dword [eax - 0xc]
mov dword [ebp - 0x140], eax
cmp dword [ebp - 0x140], 0
jle 0x4711e3
mov byte [ebp - 4], 9
movzx eax, byte [0x5222a6]
test eax, eax
je 0x470d7e
push ecx
mov eax, esp
mov dword [ebp - 0xa4], esp
mov dword [ebp - 0x14c], eax
mov eax, dword [ebp - 0x14]
sub eax, 0x10
mov dword [ebp - 0x144], eax
push dword [ebp - 0x144]
call fcn.004042f4
pop ecx
mov dword [ebp - 0x1ec], eax
mov eax, dword [ebp - 0x1ec]
mov dword [ebp - 0x148], eax
mov eax, dword [ebp - 0x148]
add eax, 0x10
mov ecx, dword [ebp - 0x14c]
mov dword [ecx], eax
mov byte [ebp - 4], 0xa
push ecx
mov eax, esp
mov dword [ebp - 0xa8], esp
mov dword [ebp - 0x158], eax
mov eax, dword [ebp - 0x44]
sub eax, 0x10
mov dword [ebp - 0x150], eax
push dword [ebp - 0x150]
call fcn.004042f4
pop ecx
mov dword [ebp - 0x1f0], eax
mov eax, dword [ebp - 0x1f0]
mov dword [ebp - 0x154], eax
mov eax, dword [ebp - 0x154]
add eax, 0x10
mov ecx, dword [ebp - 0x158]
mov dword [ecx], eax
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x1cc]
call fcn.0047079b
jmp 0x4711cd
call fcn.00498191
mov dword [ebp - 0x1f4], eax
push dword [ebp - 0x1f4]
lea ecx, [ebp - 0x54]
call fcn.00403ced
mov byte [ebp - 4], 0xb
call fcn.00498191
mov dword [ebp - 0x1f8], eax
push dword [ebp - 0x1f8]
lea ecx, [ebp - 0x5c]
call fcn.00403ced
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x15c], eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x15c]
call fcn.004a9fcf
mov dword [ebp - 0x1fc], eax
cmp dword [ebp - 0x1fc], 0
je 0x471197
push 0
push 0
push 0
push 0
push 1
push 0
lea ecx, [ebp - 0x78]
call fcn.004a9a05
mov dword [ebp - 0x200], eax
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x160], eax
push 0
push 0
push 0
push dword [ebp - 0x160]
lea ecx, [ebp - 0x78]
call fcn.004aa40b
mov dword [ebp - 0x204], eax
mov eax, dword [ebp - 0x204]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x164], eax
push 0x20000000
push 0
push 0
push 1
push 0
push dword [ebp - 0x164]
push 1
mov ecx, dword [ebp - 0x60]
call fcn.004aa4c2
mov dword [ebp - 0x208], eax
mov eax, dword [ebp - 0x208]
mov dword [ebp - 0x80], eax
call fcn.00498191
mov dword [ebp - 0x20c], eax
push dword [ebp - 0x20c]
lea ecx, [ebp - 0x7c]
call fcn.00403ced
mov byte [ebp - 4], 0xe
push 0x4fed90
lea ecx, [ebp - 0x7c]
call fcn.00403dc5
push 0x4fed9c
lea ecx, [ebp - 0x7c]
call fcn.00448f5a
push 0x4feda0
lea ecx, [ebp - 0x7c]
call fcn.00448f5a
push 0x4fedc0
lea ecx, [ebp - 0x7c]
call fcn.00448f5a
push 0x52605c
push 0x4fedc4
lea eax, [ebp - 0xac]
push eax
call fcn.0040acc3
add esp, 0xc
mov dword [ebp - 0x210], eax
mov eax, dword [ebp - 0x210]
mov dword [ebp - 0x214], eax
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x214]
lea eax, [ebp - 0xb0]
push eax
call fcn.004037e6
add esp, 0xc
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x218]
mov dword [ebp - 0x180], eax
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0x180]
mov eax, dword [eax]
mov eax, dword [eax - 0xc]
mov dword [ebp - 0x178], eax
mov eax, dword [ebp - 0x180]
mov eax, dword [eax]
mov dword [ebp - 0x17c], eax
push dword [ebp - 0x178]
push dword [ebp - 0x17c]
lea ecx, [ebp - 0x7c]
call fcn.00403e1c
mov byte [ebp - 4], 0xf
mov eax, dword [ebp - 0xb0]
sub eax, 0x10
mov dword [ebp - 0x184], eax
mov ecx, dword [ebp - 0x184]
call fcn.0040110c
mov byte [ebp - 4], 0xe
mov eax, dword [ebp - 0xac]
sub eax, 0x10
mov dword [ebp - 0x188], eax
mov ecx, dword [ebp - 0x188]
call fcn.0040110c
push 0x4fedd0
lea ecx, [ebp - 0x7c]
call fcn.00448f5a
push 0x52605c
push 0x4fedd4
lea eax, [ebp - 0xb4]
push eax
call fcn.0040acc3
add esp, 0xc
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 0x220], eax
mov byte [ebp - 4], 0x11
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x220]
lea eax, [ebp - 0xb8]
push eax
call fcn.004037e6
add esp, 0xc
mov dword [ebp - 0x224], eax
mov eax, dword [ebp - 0x224]
mov dword [ebp - 0x198], eax
mov byte [ebp - 4], 0x12
mov eax, dword [ebp - 0x198]
mov eax, dword [eax]
mov eax, dword [eax - 0xc]
mov dword [ebp - 0x190], eax
mov eax, dword [ebp - 0x198]
mov eax, dword [eax]
mov dword [ebp - 0x194], eax
push dword [ebp - 0x190]
push dword [ebp - 0x194]
lea ecx, [ebp - 0x7c]
call fcn.00403e1c
mov byte [ebp - 4], 0x11
mov eax, dword [ebp - 0xb8]
sub eax, 0x10
mov dword [ebp - 0x19c], eax
mov ecx, dword [ebp - 0x19c]
call fcn.0040110c
mov byte [ebp - 4], 0xe
mov eax, dword [ebp - 0xb4]
sub eax, 0x10
mov dword [ebp - 0x1a0], eax
mov ecx, dword [ebp - 0x1a0]
call fcn.0040110c
push 0x4feddc
lea ecx, [ebp - 0x7c]
call fcn.00448f5a
push 0x4fede0
lea ecx, [ebp - 0x7c]
call fcn.00448f5a
push 0x4fee00
lea ecx, [ebp - 0x7c]
call fcn.00448f5a
push 0x20000000
lea eax, [ebp - 0x7c]
push eax
mov ecx, dword [ebp - 0x80]
call fcn.004a9971
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 0x80]
call fcn.004a9f83
lea eax, [ebp - 0x64]
push eax
mov ecx, dword [ebp - 0x80]
call fcn.004a9416
lea ecx, [ebp - 0x78]
call fcn.004aa05f
mov eax, dword [ebp - 0x80]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x80]
call dword [eax + 0x4c]
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0xbc], eax
cmp dword [ebp - 0xbc], 0
je 0x471112
push 1
mov eax, dword [ebp - 0xbc]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xbc]
call dword [eax + 4]
mov dword [ebp - 0x228], eax
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x22c], eax
jmp 0x471119
and dword [ebp - 0x22c], 0
mov eax, dword [ebp - 0x60]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x60]
call dword [eax + 0xc]
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0xc4], eax
cmp dword [ebp - 0xc4], 0
je 0x471169
push 1
mov eax, dword [ebp - 0xc4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc4]
call dword [eax + 4]
mov dword [ebp - 0x230], eax
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x234], eax
jmp 0x471170
and dword [ebp - 0x234], 0
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x7c]
sub eax, 0x10
mov dword [ebp - 0x1b0], eax
mov ecx, dword [ebp - 0x1b0]
call fcn.0040110c
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x78]
call fcn.004aa0f5
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x5c]
sub eax, 0x10
mov dword [ebp - 0x1b4], eax
mov ecx, dword [ebp - 0x1b4]
call fcn.0040110c
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x54]
sub eax, 0x10
mov dword [ebp - 0x1b8], eax
mov ecx, dword [ebp - 0x1b8]
call fcn.0040110c
jmp 0x4711dc
mov dword [ebp - 4], 7
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x44]
sub eax, 0x10
mov dword [ebp - 0x1bc], eax
mov ecx, dword [ebp - 0x1bc]
call fcn.0040110c
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x48]
sub eax, 0x10
mov dword [ebp - 0x1c0], eax
mov ecx, dword [ebp - 0x1c0]
call fcn.0040110c
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
sub eax, 0x10
mov dword [ebp - 0x1c4], eax
mov ecx, dword [ebp - 0x1c4]
call fcn.0040110c
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
sub eax, 0x10
mov dword [ebp - 0x1c8], eax
mov ecx, dword [ebp - 0x1c8]
call fcn.0040110c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret