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

Disassembly:
push 0xffffffffffffffff
push 0x51c4b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push ebp
xor ebx, ebx
push esi
mov esi, dword [esp + 0x50]
mov ebp, ecx
lea eax, [esp + 0xc]
push ebx
push eax
push esi
lea ecx, [ebp + 0x104]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call fcn.00474bf0
test eax, eax
jne 0x479ef0
mov ecx, dword [esp + 0x54]
push ecx
push esi
push ebx
push 0x93df6c
mov ecx, ebp
call fcn.00478f40
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
add esp, 0x40
ret 0x10
mov edx, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x58]
push ebx
push ebx
push edi
lea ecx, [edx + 0x14]
call fcn.00474620
lea ecx, [esp + 0x30]
mov esi, eax
call fcn.00464430
push edi
mov dword [esp + 0x50], ebx
call fcn.00474da0
add esp, 4
test eax, eax
je 0x479f92
add esi, 0x18
push esi
call fcn.004ca470
add esi, eax
push esi
call fcn.004ca470
mov ecx, dword [esp + 0x64]
add esp, 8
cmp ecx, 3
lea eax, [esi + eax + 8]
ja case.default.0x479ff9
jmp dword [ecx*4 + 0x47a2e0]
add eax, 4
push eax
call fcn.004758e0
add esp, 4
mov dword [esp + 0x18], eax
jmp 0x47a2a5
mov eax, dword [eax]
shr eax, 2
and eax, 1
mov dword [esp + 0x18], eax
jmp 0x47a2a5
mov eax, dword [eax]
shr eax, 1
and eax, 1
mov dword [esp + 0x18], eax
jmp 0x47a2a5
mov eax, dword [eax]
not eax
and eax, 1
mov dword [esp + 0x18], eax
jmp 0x47a2a5
mov eax, dword [esi]
push ebx
push eax
mov ecx, ebp
call fcn.00479240
mov ebx, dword [esp + 0x5c]
mov edx, dword [eax + 0x28]
lea edi, [esi + 0x18]
mov dword [esp + 0x14], eax
lea ecx, [ebx + ebx*4]
mov esi, edi
push esi
lea eax, [edx + ecx*4]
mov dword [esp + 0x60], eax
call fcn.004ca470
add esi, eax
push esi
call fcn.004ca470
add esi, eax
add esp, 8
mov esi, dword [esi]
test esi, esi
je 0x479fe5
mov ecx, dword [esi + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x479fe5
mov eax, 1
jmp 0x479fe7
xor eax, eax
cmp ebx, 8
jge 0x47a24c
cmp ebx, 7
ja case.default.0x479ff9
jmp dword [ebx*4 + 0x47a2f0]
cmp eax, 1
jne 0x47a059
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0x20]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esi + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.005112cb
mov edi, eax
test edi, edi
je 0x47a044
mov ecx, esi
call fcn.00513c42
test eax, 0x80000000
jne 0x47a044
lea edx, [esp + 0x20]
mov ecx, edi
push edx
call fcn.00516296
mov eax, dword [esp + 0x20]
test ebx, ebx
je 0x47a050
mov eax, dword [esp + 0x24]
mov dword [esp + 0x18], eax
jmp 0x47a2a5
push edi
call fcn.004ca470
add edi, eax
push edi
call fcn.004ca470
add esp, 8
cmp ebx, 1
lea eax, [edi + eax + 4]
jne 0x47a076
add eax, 4
mov eax, dword [eax]
mov dword [esp + 0x18], eax
jmp 0x47a2a5
cmp eax, 1
jne 0x47a0c0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
cmp ebx, 2
jne 0x47a0ad
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
sub eax, ecx
mov dword [esp + 0x18], eax
jmp 0x47a2a5
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
sub eax, ecx
mov dword [esp + 0x18], eax
jmp 0x47a2a5
push edi
call fcn.004ca470
add edi, eax
push edi
call fcn.004ca470
add esp, 8
cmp ebx, 3
lea eax, [edi + eax + 0xc]
jne 0x47a076
add eax, 4
mov eax, dword [eax]
mov dword [esp + 0x18], eax
jmp 0x47a2a5
push edi
call fcn.004ca470
add edi, eax
push edi
call fcn.004ca470
mov edx, dword [edi + eax + 0x1c]
lea eax, [edi + eax + 0x1c]
mov ecx, dword [eax + edx*4 + 4]
lea eax, [eax + edx*4 + 4]
lea eax, [ecx + eax + 4]
push eax
call fcn.004758e0
add esp, 0xc
mov dword [esp + 0x18], eax
jmp 0x47a2a5
cmp eax, 1
jne 0x47a13d
mov edx, dword [esi + 0x1c]
push edx
call dword [sym.imp.USER32.dll_IsWindowVisible]
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
mov dword [esp + 0x18], eax
jmp 0x47a2a5
push edi
call fcn.004ca470
add edi, eax
push edi
call fcn.004ca470
mov edx, dword [edi + eax + 0x1c]
lea eax, [edi + eax + 0x1c]
mov ecx, dword [eax + edx*4 + 4]
lea eax, [eax + edx*4 + 4]
lea esi, [ecx + eax + 4]
push esi
call fcn.004ca470
mov eax, dword [eax + esi + 4]
add esp, 0xc
and eax, 1
mov dword [esp + 0x18], eax
jmp 0x47a2a5
cmp eax, 1
jne 0x47a192
mov ecx, esi
call fcn.00513dd1
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x18], eax
jmp 0x47a2a5
push edi
call fcn.004ca470
add edi, eax
push edi
call fcn.004ca470
mov edx, dword [edi + eax + 0x1c]
lea eax, [edi + eax + 0x1c]
mov ecx, dword [eax + edx*4 + 4]
lea eax, [eax + edx*4 + 4]
lea esi, [eax + ecx + 4]
push esi
call fcn.004ca470
mov eax, dword [eax + esi + 4]
add esp, 0xc
shr eax, 1
and eax, 1
mov dword [esp + 0x18], eax
jmp 0x47a2a5
push edi
call fcn.004ca470
add edi, eax
push edi
call fcn.004ca470
mov edx, dword [edi + eax + 0x1c]
lea eax, [edi + eax + 0x1c]
add esp, 8
mov ecx, dword [eax + edx*4 + 4]
lea eax, [eax + edx*4 + 4]
cmp ecx, 4
jb 0x47a239
mov dword [esp + 0x40], 0
mov ecx, dword [eax]
add eax, 4
push ecx
push eax
lea ecx, [esp + 0x38]
call fcn.00464ba0
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
neg esi
sbb esi, esi
and esi, eax
mov edx, dword [esi]
push edx
call fcn.00482b10
mov dword [esi], eax
mov eax, dword [esp + 0x44]
push eax
push esi
call fcn.00475970
add esp, 0xc
mov dword [esp + 0x18], eax
jmp 0x47a2a5
add eax, 4
push ecx
push eax
call fcn.00475970
add esp, 8
mov dword [esp + 0x18], eax
jmp 0x47a2a5
test eax, eax
jne 0x47a267
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
push ecx
push edx
push eax
push 0x93df48
mov ecx, ebp
call fcn.00478f40
mov eax, dword [esp + 0x14]
push 6
call dword [eax + 0x2c]
lea edx, [esp + 0x20]
xor ecx, ecx
add ebx, 0xfffffff8
push edx
mov dword [esp + 0x24], ecx
push ebx
push esi
mov dword [esp + 0x30], ecx
call eax
mov edx, dword [esp + 0x60]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x20]
push eax
mov eax, dword [esp + 0x60]
push ecx
push edx
push eax
mov ecx, ebp
call fcn.0047a7b0
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
lea ecx, [esp + 0x30]
mov esi, eax
mov dword [esp + 0x4c], 0xffffffff
mov dword [esp + 0x30], 0x921d20
call fcn.00464630
mov ecx, dword [esp + 0x44]
mov edx, edi
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x40
ret 0x10