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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51c458
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x138
push ebx
mov ebx, ecx
push esi
push edi
mov edi, dword [ebx + 0x1d4]
inc edi
mov dword [ebx + 0x1d4], edi
mov eax, dword [0x94f978]
mov dword [ebp - 0x10], eax
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
push edi
push esi
lea ecx, [ebp - 0x144]
push str._r_n_d___d
push ecx
mov dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edx, [ebp - 0x144]
lea ecx, [ebp - 0x10]
push edx
call fcn.0050fc46
test esi, esi
je 0x4790d9
push esi
call fcn.004744c0
add esp, 4
cmp eax, 0x2000000
jne 0x4790d9
lea eax, [ebp + 0x14]
push 0
push eax
push esi
lea ecx, [ebx + 0x104]
call fcn.00474bf0
test eax, eax
jne 0x478fe7
push 0x93deec
jmp 0x4790d1
push 0x93dee8
lea ecx, [ebp - 0x10]
call fcn.0050fc46
mov ecx, dword [ebp + 0x14]
push 0
push 0
add ecx, 0x14
call fcn.004745a0
lea esi, [eax + 0x18]
push esi
call fcn.004ca470
add esi, eax
push esi
call fcn.004ca470
mov edx, dword [esi + eax + 0x1c]
lea eax, [esi + eax + 0x1c]
add esp, 8
mov ecx, dword [eax + edx*4 + 4]
lea eax, [eax + edx*4 + 4]
lea eax, [ecx + eax + 4]
lea ecx, [ebp - 0x10]
push eax
call fcn.0050fc46
push 0x93dee4
lea ecx, [ebp - 0x10]
call fcn.0050fc46
test edi, edi
push 0
push 0
jne 0x479067
mov edx, dword [ebp + 0x14]
lea ecx, [edx + 0x14]
call fcn.004745a0
mov esi, eax
mov eax, dword [ebp + 0x14]
push 0
lea ecx, [eax + 0x14]
call fcn.004745f0
mov edi, eax
jmp 0x479075
mov ecx, dword [ebp + 0x14]
push edi
add ecx, 0x14
call fcn.00474620
mov esi, eax
test esi, esi
je 0x4790cc
push edi
call fcn.00474da0
add esp, 4
cmp eax, 1
je 0x4790cc
push 0x93dee8
lea ecx, [ebp - 0x10]
call fcn.0050fc46
add esi, 0x18
push esi
call fcn.004ca470
add esi, eax
push esi
call fcn.004ca470
mov edx, dword [esi + eax + 0x1c]
lea eax, [esi + eax + 0x1c]
add esp, 8
mov ecx, dword [eax + edx*4 + 4]
lea eax, [eax + edx*4 + 4]
lea eax, [ecx + eax + 4]
lea ecx, [ebp - 0x10]
push eax
call fcn.0050fc46
push 0x93dee4
jmp 0x4790d1
push 0x93dec8
lea ecx, [ebp - 0x10]
call fcn.0050fc46
push 0x93dec4
lea ecx, [ebp - 0x10]
call fcn.0050fc46
mov eax, dword [ebx + 0xc0]
mov edi, dword [ebp + 0xc]
test eax, eax
je 0x479152
mov eax, dword [0x95fdc8]
test eax, eax
jne 0x479152
mov edx, dword [ebp + 8]
lea ecx, [ebp + 0x14]
push edx
call fcn.0050f924
lea eax, [ebp - 0x10]
lea ecx, [ebp + 0x14]
push eax
mov byte [ebp - 4], 1
call fcn.0050fc82
mov ecx, dword [ebp + 0x14]
mov dword [0x95fdc8], 1
push ecx
push edi
call dword [ebx + 0xc0]
mov esi, eax
lea ecx, [ebp + 0x14]
neg esi
sbb esi, esi
mov dword [0x95fdc8], 0
inc esi
mov byte [ebp - 4], 0
call fcn.0050f8b6
test esi, esi
je 0x4791f1
push 0x93deb4
lea ecx, [ebp + 0x14]
call fcn.0050f924
test edi, edi
mov byte [ebp - 4], 2
je 0x47919a
lea edx, [ebp - 0x44]
push edx
push edi
call fcn.00481770
add esp, 8
lea ecx, [ebp + 0x14]
push 0x93dea4
call fcn.0050fc46
lea eax, [ebp - 0x44]
lea ecx, [ebp + 0x14]
push eax
call fcn.0050fc46
push 0x93dec4
lea ecx, [ebp + 0x14]
call fcn.0050fc46
mov esi, dword [ebp + 8]
push esi
call fcn.004e06e0
add esp, 4
test eax, eax
jne 0x4791cd
push 0x93de94
lea ecx, [ebp + 0x14]
call fcn.0050fc46
push esi
lea ecx, [ebp + 0x14]
call fcn.0050fc46
push 0x93dec4
lea ecx, [ebp + 0x14]
call fcn.0050fc46
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp + 0x14]
call fcn.0050fc82
mov edx, dword [ebp + 0x14]
push edx
call fcn.00482a70
add esp, 4
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], 0
call fcn.0050f8b6
cmp dword [ebx + 0xc4], 2
jne 0x4791ff
int3
lea ecx, [ebx + 0x410]
call fcn.00464630
push 0xffffffffffffffff
call fcn.00481550
add esp, 4
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.0050f8b6
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10