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

Disassembly:
sub esp, 0x24
mov eax, dword [esp + 0x28]
push ebx
push ebp
push esi
test eax, eax
push edi
mov dword [esp + 0x10], ecx
je 0x4751ad
lea esi, [eax + 0x18]
push esi
call fcn.004ca470
add esi, eax
push esi
call fcn.004ca470
mov ebx, eax
add esp, 8
add ebx, esi
mov esi, dword [ebx]
test esi, esi
je 0x4751ad
mov eax, dword [esi + 0x1c]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4751ad
mov ecx, dword [esi + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.005112cb
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x40]
cmp eax, 0x7fffffff
jne 0x474eed
mov edx, dword [esi + 0x1c]
push 0
push 0
push 0x130b
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
xor ecx, ecx
mov edi, dword [ebx + 0x1c]
test eax, eax
setl cl
dec ecx
add ebx, 0x1c
and ecx, eax
add ebx, 4
mov ebp, ecx
mov dword [esp + 0x38], edi
test ebp, ebp
jle 0x474fc3
test edi, edi
jle 0x474fbf
mov eax, dword [ebx]
test eax, eax
je 0x474fb2
test edi, edi
jle 0x474fb2
mov ecx, dword [esp + 0x10]
push 0
push 0
push eax
call fcn.00474620
mov esi, eax
add esi, 0x18
push esi
call fcn.004ca470
add esi, eax
push esi
call fcn.004ca470
add esi, eax
add esp, 8
mov esi, dword [esi]
mov ecx, esi
call fcn.00513c42
test eax, 0x10000000
je 0x474fa3
cmp dword [esp + 0x40], 0x7fffffff
je 0x474f9a
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0x24]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x18]
call fcn.00516296
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x24]
push 1
push edx
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
push 0
mov ecx, esi
call fcn.00513daa
mov eax, dword [ebx + 4]
add ebx, 4
dec edi
test eax, eax
jne 0x474f20
add ebx, 4
dec edi
dec ebp
test ebp, ebp
jg 0x474f0e
mov dword [esp + 0x38], edi
test edi, edi
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], closesocket
jle 0x4751ad
jmp 0x474fe1
mov edi, dword [esp + 0x38]
mov eax, dword [ebx]
test eax, eax
je 0x475105
mov ecx, dword [esp + 0x10]
push 0
push 0
push eax
call fcn.00474620
mov ebp, eax
lea edi, [ebp + 0x18]
mov esi, edi
push esi
call fcn.004ca470
add esi, eax
push esi
call fcn.004ca470
mov edx, dword [esi + eax]
add esp, 8
add esi, eax
mov eax, dword [ebp]
push 0
push eax
push 0x3ea
mov dword [esp + 0x24], edx
call fcn.00479d20
mov esi, eax
test esi, esi
je 0x4750ec
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x47507e
mov eax, dword [esi + 0x14]
test ah, 0x80
jne 0x4750ec
mov ebp, edi
push ebp
call fcn.004ca470
add ebp, eax
push ebp
call fcn.004ca470
mov ecx, dword [eax + ebp + 0x1c]
lea eax, [eax + ebp + 0x1c]
mov edx, dword [eax + ecx*4 + 4]
lea eax, [eax + ecx*4 + 4]
lea ebp, [edx + eax + 4]
push ebp
call fcn.004ca470
mov cl, byte [eax + ebp + 4]
add esp, 0xc
test cl, 1
je 0x47508d
mov ebp, dword [esp + 0x18]
push 8
mov ecx, ebp
call fcn.00513daa
jmp 0x475091
mov ebp, dword [esp + 0x18]
cmp dword [esp + 0x3c], 1
jne 0x4750ec
mov ecx, ebp
call fcn.00513dd1
cmp eax, 1
jne 0x4750ec
test dword [esi + 0x14], 0x10000
jne 0x4750ec
push edi
call fcn.004ca470
add edi, eax
push edi
call fcn.004ca470
mov ecx, dword [edi + eax + 0x1c]
lea eax, [edi + eax + 0x1c]
mov edx, dword [eax + ecx*4 + 4]
lea eax, [eax + ecx*4 + 4]
lea edi, [edx + eax + 4]
push edi
call fcn.004ca470
mov eax, dword [eax + edi + 8]
mov ecx, dword [esp + 0x28]
add esp, 0xc
cmp eax, ecx
jge 0x4750ec
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x38]
add ebx, 4
dec eax
test eax, eax
mov dword [esp + 0x38], eax
jg 0x474fdd
jmp 0x475196
test edi, edi
jle 0x475196
mov eax, dword [ebx]
test eax, eax
je 0x47518c
mov ecx, dword [esp + 0x10]
push 0
push 0
push eax
call fcn.00474620
mov esi, eax
add esi, 0x18
push esi
call fcn.004ca470
add esi, eax
push esi
call fcn.004ca470
add esi, eax
add esp, 8
mov esi, dword [esi]
mov ecx, esi
call fcn.00513c42
test eax, 0x10000000
je 0x47518c
cmp dword [esp + 0x40], 0x7fffffff
je 0x475183
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ebp, dword [esp + 0x14]
lea edx, [esp + 0x24]
push edx
mov ecx, ebp
call fcn.00516296
mov ecx, dword [ebp + 0x1c]
lea eax, [esp + 0x24]
push 1
push eax
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
push 0
mov ecx, esi
call fcn.00513daa
add ebx, 4
dec edi
jne 0x47510d
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x4751ad
cmp dword [esp + 0x40], 0x7fffffff
jne 0x4751ad
call fcn.00513e13
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0xc