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

Disassembly:
push 0xffffffffffffffff
push 0x51dcc0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
push ebp
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
call fcn.004902d0
mov ecx, esi
call fcn.00490320
mov ebp, eax
cmp ebp, edi
mov dword [esp + 0x14], ebp
je 0x494eae
push ebx
push edi
lea ecx, [esp + 0x48]
call fcn.00516428
mov eax, dword [esi + 0x5c]
mov ecx, dword [esi + 0x58]
push eax
lea edx, [esp + 0x48]
push ecx
push edx
mov dword [esp + 0x6c], edi
call fcn.004a88f0
add esp, 0xc
lea eax, [esp + 0x44]
lea ecx, [esp + 0x28]
push eax
call fcn.0048fd40
push edi
mov ecx, esi
mov byte [esp + 0x64], 1
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
call fcn.00512b61
mov ebx, dword [esp + 0x68]
mov edi, eax
cmp ebx, 0xffffffff
je 0x494cdc
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push edx
push 0
mov ecx, esi
call fcn.00512bbc
mov eax, dword [esp + 0x10]
cmp eax, ebx
mov ecx, eax
jl 0x494c4f
mov ecx, ebx
mov edx, dword [esp + 0x14]
cmp edx, ecx
jle 0x494c5b
mov ebx, edx
jmp 0x494c61
cmp eax, ebx
jge 0x494c61
mov ebx, eax
cmp ebx, edi
je 0x494cdc
mov eax, dword [esp + 0x70]
test eax, eax
je 0x494cd0
mov ecx, ebp
call fcn.0048d690
lea ebp, [eax + edi]
lea ecx, [eax + ebx]
cmp ebp, ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x68], ebp
jg 0x494c8a
mov dword [esp + 0x68], ecx
cmp ebp, ecx
mov edi, ebp
jl 0x494c92
mov edi, ecx
cmp edi, dword [esp + 0x68]
jge 0x494d1f
push edi
mov ecx, esi
call fcn.0048fe50
push eax
mov eax, dword [esp + 0x30]
push eax
mov ecx, esi
call fcn.00490010
mov ecx, dword [esp + 0x68]
inc edi
cmp edi, ecx
mov dword [esp + 0x2c], eax
jl 0x494c9c
mov ecx, dword [esp + 0x20]
cmp ebp, ecx
jge 0x494ccc
neg eax
mov dword [esp + 0x2c], eax
mov ebp, dword [esp + 0x18]
push 1
push ebx
push 0
mov ecx, esi
call fcn.00512b31
push 1
mov ecx, esi
call fcn.00512b61
mov ebx, dword [esp + 0x6c]
mov edi, eax
cmp ebx, 0xffffffff
je 0x494da2
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push edx
push 1
mov ecx, esi
call fcn.00512bbc
mov eax, dword [esp + 0x10]
cmp eax, ebx
mov ecx, eax
jl 0x494d13
mov ecx, ebx
mov edx, dword [esp + 0x14]
cmp edx, ecx
jle 0x494d25
mov ebx, edx
jmp 0x494d2b
mov eax, dword [esp + 0x2c]
jmp 0x494cc2
cmp eax, ebx
jge 0x494d2b
mov ebx, eax
cmp ebx, edi
je 0x494da2
mov eax, dword [esp + 0x70]
test eax, eax
je 0x494d96
mov ecx, ebp
call fcn.0048d680
lea ebp, [eax + edi]
lea ecx, [eax + ebx]
cmp ebp, ecx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x68], ebp
jg 0x494d54
mov dword [esp + 0x68], ecx
cmp ebp, ecx
mov edi, ebp
jl 0x494d5c
mov edi, ecx
cmp edi, dword [esp + 0x68]
jge 0x494ec2
push edi
mov ecx, esi
call fcn.0048fd70
push eax
mov eax, dword [esp + 0x34]
push eax
mov ecx, esi
call fcn.00490140
mov ecx, dword [esp + 0x68]
inc edi
cmp edi, ecx
mov dword [esp + 0x30], eax
jl 0x494d66
mov ecx, dword [esp + 0x6c]
cmp ebp, ecx
jge 0x494d96
neg eax
mov dword [esp + 0x30], eax
push 1
push ebx
push 1
mov ecx, esi
call fcn.00512b31
mov ebx, dword [esp + 0x70]
test ebx, ebx
je 0x494e93
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x494dc2
mov eax, dword [esp + 0x30]
test eax, eax
je 0x494e93
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x48]
call fcn.00516356
lea edx, [esp + 0x18]
mov ecx, esi
push edx
call fcn.00491e90
mov ecx, eax
lea edx, [esp + 0x20]
push edx
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x48]
call fcn.00516356
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x34]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x494e49
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x20]
mov edi, edx
add edx, ecx
test ecx, ecx
mov dword [esp + 0x34], edx
je 0x494e2b
mov ecx, edx
inc ecx
mov dword [esp + 0x34], ecx
push 2
push 0
lea edx, [esp + 0x3c]
push 0
lea ecx, [esp + 0x40]
push edx
push ecx
push 0
push eax
mov ecx, esi
call fcn.00513bc0
mov dword [esp + 0x34], edi
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x494e84
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x38]
add edi, eax
test eax, eax
mov dword [esp + 0x38], edi
je 0x494e6a
mov eax, edi
inc eax
mov dword [esp + 0x38], eax
push 2
push 0
lea edx, [esp + 0x3c]
push 0
lea eax, [esp + 0x40]
push edx
push eax
push ecx
push 0
mov ecx, esi
call fcn.00513bc0
cmp ebx, 2
jne 0x494e93
mov ecx, dword [esi + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
lea ecx, [esp + 0x28]
call fcn.0048fd60
lea ecx, [esp + 0x44]
mov dword [esp + 0x60], 0xffffffff
call fcn.0051649a
pop ebx
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x54
ret 0xc
mov eax, dword [esp + 0x30]
jmp 0x494d8c