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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c4e5b
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x38], ecx
push 0xc
call fcn.100559d3
mov ebx, eax
add esp, 4
mov dword [ebp - 0x48], ebx
test ebx, ebx
je 0x1000a407
xorps xmm0, xmm0
movq qword [ebx], xmm0
mov dword [ebx + 8], 0
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
jmp 0x1000a40e
mov dword [ebp - 0x48], 0
push 0xac
call fcn.100559d3
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x1000a446
push 0xac
push 0
push esi
call fcn.100567e0
add esp, 0xc
mov ecx, esi
call fcn.1000afc0
mov esi, eax
jmp 0x1000a448
xor esi, esi
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
call fcn.1000b1d0
test eax, eax
jne 0x1000a477
test esi, esi
je 0x1000a88e
mov ecx, esi
call fcn.1000b040
push esi
call fcn.100559ce
add esp, 4
jmp 0x1000a88e
push edi
push dword [ebp - 0x38]
mov ecx, esi
call fcn.1000b520
test esi, esi
je 0x1000a48e
mov eax, dword [0x1017b7b4]
mov dword [eax + 0x18], esi
push dword [esi + 0x54]
call fcn.10010b70
cmp dword [esi + 0x68], 0
je 0x1000a632
mov eax, dword [esi + 0x6c]
mov dword [ebp - 0x40], eax
test eax, eax
je 0x1000a778
mov ecx, eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000a4b3
sub ecx, edx
sar ecx, 1
je 0x1000a778
cmp dword [esi + 0x70], 0
je 0x1000a778
push 0x800
call fcn.10055db0
mov edi, eax
add esp, 4
mov dword [ebp - 0x14], edi
test edi, edi
je 0x1000a778
push 0
push 0
push 0
push 0x10000002
mov dword [ebp - 0x18], 0x800
call dword [sym.imp.urlmon.dll_UrlMkSetSessionOption]
lea eax, [ebp - 0x18]
push eax
push edi
push 0
call dword [sym.imp.urlmon.dll_ObtainUserAgentString]
test eax, eax
jne 0x1000a76f
mov ecx, edi
call fcn.10010610
mov ebx, eax
mov dword [ebp - 0x38], ebx
test ebx, ebx
je 0x1000a76f
push ebx
call fcn.10011a50
xor edi, edi
mov dword [ebp - 0x44], eax
test eax, eax
je 0x1000a550
mov edi, eax
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x1000a541
sub edi, ecx
sar edi, 1
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000a555
sub ecx, edx
mov edx, dword [ebp - 0x40]
sar ecx, 1
lea ebx, [edx + 2]
lea ebx, [ebx]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x1000a570
sub edx, ebx
sar edx, 1
lea eax, [edx + 5]
mov edx, 2
add eax, ecx
xor ecx, ecx
add eax, edi
mov dword [ebp - 0x3c], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10055db0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1000a612
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
push ebx
call fcn.10055fa4
push 0x29
push ebx
call fcn.10056bd6
add esp, 0x14
test eax, eax
je 0x1000a5c8
xor ecx, ecx
mov word [eax], cx
test edi, edi
mov edi, dword [ebp - 0x3c]
je 0x1000a5dc
push dword [ebp - 0x44]
push edi
push ebx
call fcn.10055f38
add esp, 0xc
push 0x100e3b4c
push edi
push ebx
call fcn.10055f38
push dword [ebp - 0x40]
push edi
push ebx
call fcn.10055f38
push 0x100e3b54
push edi
push ebx
call fcn.10055f38
add esp, 0x24
mov ecx, esi
push ebx
call fcn.1000a380
push ebx
call fcn.10055d78
add esp, 4
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x1000a622
push eax
call fcn.10055d78
add esp, 4
push dword [ebp - 0x38]
call fcn.10055d78
mov edi, dword [ebp - 0x14]
jmp 0x1000a76c
push 0x800
call fcn.10055db0
mov edi, eax
add esp, 4
mov dword [ebp - 0x18], edi
test edi, edi
je 0x1000a778
push 0
push 0
push 0
push 0x10000002
mov dword [ebp - 0x14], 0x800
call dword [sym.imp.urlmon.dll_UrlMkSetSessionOption]
lea eax, [ebp - 0x14]
push eax
push edi
push 0
call dword [sym.imp.urlmon.dll_ObtainUserAgentString]
test eax, eax
jne 0x1000a76f
mov ecx, edi
call fcn.10010610
mov ebx, eax
mov dword [ebp - 0x38], ebx
test ebx, ebx
je 0x1000a76f
push ebx
call fcn.10011a50
xor edi, edi
mov dword [ebp - 0x40], eax
test eax, eax
je 0x1000a6b0
mov edi, eax
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x1000a6a1
sub edi, ecx
sar edi, 1
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000a6b5
sub ecx, edx
lea eax, [edi + 3]
sar ecx, 1
mov edx, 2
add eax, ecx
xor ecx, ecx
mov dword [ebp - 0x3c], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10055db0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1000a751
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
push ebx
call fcn.10055fa4
push 0x29
push ebx
call fcn.10056bd6
add esp, 0x14
test eax, eax
je 0x1000a70b
xor ecx, ecx
mov word [eax], cx
test edi, edi
mov edi, dword [ebp - 0x40]
je 0x1000a71f
push edi
push dword [ebp - 0x3c]
push ebx
call fcn.10055f38
add esp, 0xc
push 0x100e3b54
push dword [ebp - 0x3c]
push ebx
call fcn.10055f38
add esp, 0xc
mov ecx, esi
push ebx
call fcn.1000a380
push ebx
mov dword [esi + 0x68], 1
mov dword [esi + 0x70], 0
call fcn.10055d78
add esp, 4
jmp 0x1000a754
mov edi, dword [ebp - 0x40]
test edi, edi
je 0x1000a761
push edi
call fcn.10055d78
add esp, 4
push dword [ebp - 0x38]
call fcn.10055d78
mov edi, dword [ebp - 0x18]
add esp, 4
push edi
call fcn.10055d78
add esp, 4
mov ebx, dword [ebp - 0x48]
mov ecx, ebx
call fcn.10015bd0
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1000a7ae
imul ecx, dword [esi + 4], 0x3e8
push 0x10015090
mov dword [esi + 0x98], edi
push ecx
push 0x7ea
push edi
call dword [sym.imp.USER32.dll_SetTimer]
push 0
push 0
push 0
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x1000a817
cmp dword [0x1017a224], 0
jne 0x1000a817
call dword [sym.imp.USER32.dll_GetFocus]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1000a7ef
lea eax, [ebp - 0x34]
push eax
push esi
call fcn.10002c00
add esp, 8
test eax, eax
jne 0x1000a803
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0
push 0
push 0
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x1000a7c2
call fcn.1000be70
test ebx, ebx
je 0x1000a829
push ebx
call fcn.100559ce
add esp, 4
mov ecx, dword [0x1017b7b4]
test ecx, ecx
je 0x1000a843
push ecx
call fcn.1000a8b0
mov dword [0x1017b7b4], 0
mov eax, dword [0x1017b7b8]
test eax, eax
je 0x1000a85f
push eax
call fcn.100559ce
add esp, 4
mov dword [0x1017b7b8], 0
test edi, edi
je 0x1000a888
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1000a888
push 0xffffffffffffffeb
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, eax
je 0x1000a888
push 0
push 0
push 0x10
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
call dword [sym.imp.ole32.dll_OleUninitialize]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10056351
mov esp, ebp
pop ebp
ret