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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10083a61
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x100b700c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x3c]
mov edx, dword [ebp + 0x38]
mov dword [ebp - 0x238], eax
mov eax, dword [ebp + 0x40]
mov dword [ebp - 0x234], edx
mov dword [ebp - 0x244], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x230], 0x200
push eax
push 0
call dword [sym.imp.urlmon.dll_ObtainUserAgentString]
mov eax, dword fs:[0x2c]
mov ecx, dword [0x100b92d8]
mov dword [ebp - 0x220], 0x8131183c
mov edi, dword [eax + ecx*4]
mov eax, dword [edi + 0x15a4]
test al, 1
jne 0x1002ea3c
or eax, 1
mov dword [edi + 0x15a4], eax
xorps xmm0, xmm0
mov byte [ebp - 4], 3
movlpd qword [ebp - 0x240], xmm0
mov edx, dword [ebp - 0x23c]
mov ecx, dword [ebp - 0x240]
mov byte [edi + 0x4a0c], 1
nop word [eax + eax]
mov al, byte [ebp + ecx - 0x220]
mov byte [ecx + edi + 0x4a08], al
add ecx, 1
adc edx, 0
jne 0x1002ea2b
cmp ecx, 4
jb 0x1002ea10
push 0x10094a60
call fcn.1007f31b
add esp, 4
mov byte [ebp - 4], 2
lea esi, [edi + 0x4a08]
mov ecx, esi
call fcn.100779f0
push esi
lea eax, [ebp - 0x1c]
push 5
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
lea ecx, [ebp - 0x21c]
call fcn.100187a0
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x1002ebe4
cmp dword [ebp + 0x1c], 0x10
lea edx, [ebp + 8]
mov ecx, ebx
cmovae edx, dword [ebp + 8]
sub esp, 0x18
call fcn.10018950
add esp, 0x18
mov dword [ebp - 0x220], eax
test eax, eax
je 0x1002ebdd
mov eax, dword [edi + 0x1018]
mov dword [ebp - 0x22c], 0x8343f1a7
mov dword [ebp - 0x228], 0xe4e726c6
mov byte [ebp - 0x224], 0xef
test al, 1
jne 0x1002eb1c
or eax, 1
mov dword [edi + 0x1018], eax
xorps xmm0, xmm0
mov byte [ebp - 4], 4
movlpd qword [ebp - 0x240], xmm0
mov edx, dword [ebp - 0x23c]
mov ecx, dword [ebp - 0x240]
mov byte [edi + 0x2b69], 1
nop dword [eax]
nop dword [eax + eax]
mov al, byte [ebp + ecx - 0x22c]
mov byte [ecx + edi + 0x2b60], al
add ecx, 1
adc edx, 0
jne 0x1002eb0b
cmp ecx, 9
jb 0x1002eaf0
push 0x10094a10
call fcn.1007f31b
add esp, 4
mov byte [ebp - 4], 2
lea esi, [edi + 0x2b60]
mov ecx, esi
call fcn.10077990
cmp dword [ebp + 0x34], 0x10
lea eax, [ebp + 0x20]
mov ecx, dword [ebp - 0x220]
lea edx, [ebp - 0x1c]
cmovae eax, dword [ebp + 0x20]
sub esp, 0x10
push esi
push eax
call fcn.10018af0
mov esi, eax
add esp, 0x18
test esi, esi
je 0x1002ebd7
mov eax, dword [ebp - 0x238]
xor ecx, ecx
test eax, eax
je 0x1002eb6e
mov ecx, eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002eb65
sub ecx, edx
mov eax, dword [ebp - 0x234]
xor edx, edx
test eax, eax
je 0x1002eb89
mov edx, eax
lea edi, [edx + 1]
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x1002eb80
sub edx, edi
mov eax, dword [ebp - 0x238]
push ecx
push eax
push edx
mov edx, dword [ebp - 0x234]
mov ecx, esi
call fcn.10018cb0
mov edi, dword [ebp - 0x244]
lea eax, [ebp - 0x234]
add esp, 0xc
mov dword [ebp - 0x234], 0x64
mov edx, edi
push eax
push ecx
mov ecx, esi
call fcn.10018e50
mov eax, dword [ebp - 0x234]
add esp, 8
mov ecx, esi
mov byte [edi + eax], 0
call fcn.10018ff0
mov eax, dword [ebp - 0x220]
mov ecx, eax
call fcn.10018ff0
mov ecx, ebx
call fcn.10018ff0
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x1002ec1b
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002ec11
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002ec53
push edx
push ecx
call fcn.1007f264
add esp, 8
mov edx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp edx, 0x10
jb 0x1002ec69
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002ec5f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1002ec5f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov eax, 0x1002ebeb
ret
push edx
push ecx
call fcn.1007f264
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1007ea19
mov esp, ebp
pop ebp
ret 0x3c