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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017e45b
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x101fd398]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.10004650
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x28
call fcn.10004650
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x5c
call fcn.10004650
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0x90
call fcn.10012390
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
add ecx, 0x9c
call fcn.10012390
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x10]
add ecx, 0xa8
call fcn.10012390
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x10]
add ecx, 0xb4
call fcn.10004650
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x10]
add ecx, 0xcc
call fcn.10004650
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x10]
add ecx, 0xe4
call fcn.10004650
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x10]
add ecx, 0x1fc
call fcn.10004650
mov byte [ebp - 4], 9
movzx eax, byte [0x1020242c]
test eax, eax
jne 0x100318be
mov ecx, dword [ebp - 0x10]
mov byte [ecx + 0x218], 1
push 3
call fcn.10040610
add esp, 4
push 4
call fcn.10040330
add esp, 4
mov dword [ebp - 0x18], eax
push str.WinSSL
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x14]
push eax
call fcn.101556f0
add esp, 8
mov ecx, dword [ebp - 0x18]
cmp eax, dword [ecx + 0x14]
je 0x1003181b
mov dword [ebp - 0x1c], 1
jmp 0x10031822
mov dword [ebp - 0x1c], 0
mov dl, byte [ebp - 0x1c]
mov byte [0x1020242d], dl
push 0x3ff
push 0x10202430
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x10202430
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x14], eax
jmp 0x1003185c
mov ecx, dword [ebp - 0x14]
sub ecx, 1
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0
jl 0x10031898
mov edx, dword [ebp - 0x14]
movsx eax, byte [edx + 0x10202430]
cmp eax, 0x5c
jne 0x10031896
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x20], 0x400
jae 0x10031885
jmp 0x1003188a
call fcn.10153a7e
mov edx, dword [ebp - 0x20]
mov byte [edx + 0x10202430], 0
jmp 0x10031898
jmp 0x10031853
push str.curl_ca_bundle.crt
push 0x10202430
call fcn.10033300
add esp, 8
push 0x100322e0
call fcn.10153948
add esp, 4
mov byte [0x1020242c], 1
mov eax, dword [ebp - 0x10]
mov dword [eax + 8], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x220], 0xffffffff
mov dword [ecx + 0x224], 0xffffffff
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x228], 0xffffffff
mov dword [edx + 0x22c], 0xffffffff
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x214], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x80], 0xffffffff
mov dword [ecx + 0x84], 0xffffffff
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x24], 0
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp - 0x10]
mov byte [edx + ecx + 0xfc], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x50], 0
call fcn.10040570
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x48], 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
mov dword [eax + 0x4c], ecx
mov edx, dword [ebp - 0x10]
mov dword [edx], 0x10000
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x54], 1
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x10]
mov dword [ecx + 0x58], edx
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x44], 0
mov ecx, dword [ebp - 0x10]
mov byte [ecx + 0x230], 0
push 0x101deefe
push 0x2797
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
push eax
call fcn.10044430
add esp, 0xc
push str.Mozilla_5.0
lea ecx, [ebp - 0x3c]
call fcn.10004f90
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.10031f80
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x3c]
call fcn.10004780
push 0x10031450
push 0x4e2b
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
push eax
call fcn.10044430
add esp, 0xc
mov ecx, dword [ebp - 0x10]
add ecx, 0x48
push ecx
push 0x2711
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
push eax
call fcn.10044430
add esp, 0xc
mov ecx, dword [ebp - 0x10]
add ecx, 0x54
push ecx
push 0x272d
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
push eax
call fcn.10044430
add esp, 0xc
mov ecx, dword [ebp - 0x10]
add ecx, 0xfc
push ecx
push 0x271a
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
push eax
call fcn.10044430
add esp, 0xc
push 0x10031580
push 0x4e58
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 4]
push edx
call fcn.10044430
add esp, 0xc
push 0
push 0x2b
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 4]
push ecx
call fcn.10044430
add esp, 0xc
mov edx, dword [ebp - 0x10]
push edx
push 0x2749
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 4]
push ecx
call fcn.10044430
add esp, 0xc
push 1
push 0x34
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
push eax
call fcn.10044430
add esp, 0xc
push 0x101deeff
push 0x2776
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 4]
push edx
call fcn.10044430
add esp, 0xc
push 0x10031400
push 0x4eb4
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 4]
push ecx
call fcn.10044430
add esp, 0xc
mov edx, dword [ebp - 0x10]
push edx
push 0x27a5
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 4]
push ecx
call fcn.10044430
add esp, 0xc
push 0x10202430
push 0x2751
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
push eax
call fcn.10044430
add esp, 0xc
push 1
push 0x40
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 4]
push edx
call fcn.10044430
add esp, 0xc
push 2
push 0x51
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 4]
push ecx
call fcn.10044430
add esp, 0xc
push 1
push 0x3a
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
push eax
call fcn.10044430
add esp, 0xc
push 0x8000
push 0x62
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 4]
push edx
call fcn.10044430
add esp, 0xc
push 0
push 0x29
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 4]
push ecx
call fcn.10044430
add esp, 0xc
push 3
push 0xd
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
push eax
call fcn.10044430
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret