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

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
sub esp, 0x14
cmp dword [edx + 0x68], 0
push ebx
push esi
push edi
je 0x1004848e
mov eax, dword [edx + 0x6c]
mov dword [ebp - 4], eax
test eax, eax
je 0x100485d4
mov ecx, eax
lea esi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10048310
sub ecx, esi
sar ecx, 1
je 0x100485d4
cmp dword [edx + 0x70], 0
je 0x100485d4
push 0x800
call fcn.1006daa9
mov ebx, eax
add esp, 4
mov dword [ebp - 0x14], ebx
test ebx, ebx
je 0x100485d4
push 0
push 0
push 0
push 0x10000002
mov dword [ebp - 0x10], 0x800
call sub.urlmon.dll_UrlMkSetSessionOption
lea eax, [ebp - 0x10]
push eax
push ebx
push 0
call sub.urlmon.dll_ObtainUserAgentString
test eax, eax
jne 0x100485cb
mov eax, dword [0x1013e770]
mov ecx, dword [eax + 0x1c]
mov eax, dword [ecx]
call dword [eax + 0x30]
push ebx
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 4]
mov edi, eax
mov dword [ebp - 0xc], edi
test edi, edi
je 0x100485cb
mov ecx, dword [0x1013e770]
push edi
call fcn.1004f750
xor esi, esi
mov dword [ebp - 8], eax
test eax, eax
je 0x100483bf
mov esi, eax
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x100483b0
sub esi, ecx
sar esi, 1
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100483c4
sub ecx, edx
mov edx, dword [ebp - 4]
sar ecx, 1
lea edi, [edx + 2]
lea esp, [esp]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x100483e0
sub edx, edi
lea ebx, [ecx + 5]
sar edx, 1
add ebx, edx
add ebx, esi
lea eax, [ebx + ebx]
push eax
call fcn.1006daa9
mov edi, eax
add esp, 4
test edi, edi
je 0x1004846e
push dword [ebp - 0xc]
push ebx
push edi
call fcn.1006e6e1
push 0x29
push edi
call fcn.1007204b
add esp, 0x14
test eax, eax
je 0x10048426
xor ecx, ecx
mov word [eax], cx
test esi, esi
je 0x10048437
push dword [ebp - 8]
push ebx
push edi
call fcn.1006e675
add esp, 0xc
push 0x100a4dc4
push ebx
push edi
call fcn.1006e675
push dword [ebp - 4]
push ebx
push edi
call fcn.1006e675
push 0x100a4dcc
push ebx
push edi
call fcn.1006e675
mov ecx, dword [ebp + 8]
add esp, 0x24
push edi
call fcn.10048a70
push edi
call fcn.1006da71
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x1004847e
push eax
call fcn.1006da71
add esp, 4
push dword [ebp - 0xc]
call fcn.1006da71
mov ebx, dword [ebp - 0x14]
jmp 0x100485c8
push 0x800
call fcn.1006daa9
mov ebx, eax
add esp, 4
mov dword [ebp - 0x10], ebx
test ebx, ebx
je 0x100485d4
push 0
push 0
push 0
push 0x10000002
mov dword [ebp - 0x14], 0x800
call sub.urlmon.dll_UrlMkSetSessionOption
lea eax, [ebp - 0x14]
push eax
push ebx
push 0
call sub.urlmon.dll_ObtainUserAgentString
test eax, eax
jne 0x100485cb
mov eax, dword [0x1013e770]
mov ecx, dword [eax + 0x1c]
mov eax, dword [ecx]
call dword [eax + 0x30]
push ebx
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 4]
mov edi, eax
mov dword [ebp - 0xc], edi
test edi, edi
je 0x100485cb
mov ecx, dword [0x1013e770]
push edi
call fcn.1004f750
mov ebx, eax
xor esi, esi
test ebx, ebx
je 0x1004851f
mov esi, ebx
lea ecx, [esi + 2]
mov edi, edi
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10048510
sub esi, ecx
sar esi, 1
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10048524
sub ecx, edx
lea eax, [esi + 3]
sar ecx, 1
add eax, ecx
mov dword [ebp - 4], eax
add eax, eax
push eax
call fcn.1006daa9
mov edi, eax
add esp, 4
test edi, edi
je 0x100485b0
push dword [ebp - 0xc]
push dword [ebp - 4]
push edi
call fcn.1006e6e1
push 0x29
push edi
call fcn.1007204b
add esp, 0x14
test eax, eax
je 0x1004856c
xor ecx, ecx
mov word [eax], cx
test esi, esi
je 0x1004857d
push ebx
push dword [ebp - 4]
push edi
call fcn.1006e675
add esp, 0xc
push 0x100a4dcc
push dword [ebp - 4]
push edi
call fcn.1006e675
mov esi, dword [ebp + 8]
add esp, 0xc
mov ecx, esi
push edi
call fcn.10048a70
push edi
mov dword [esi + 0x68], 1
mov dword [esi + 0x70], 0
call fcn.1006da71
add esp, 4
test ebx, ebx
je 0x100485bd
push ebx
call fcn.1006da71
add esp, 4
push dword [ebp - 0xc]
call fcn.1006da71
mov ebx, dword [ebp - 0x10]
add esp, 4
push ebx
call fcn.1006da71
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4