Function at 0x40a120
Capabilities:
Prepare http request
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x442282
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x454314]
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 eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 4], 0
push 0x60
mov dword [ebp - 0xa0], edi
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], 0
call fcn.0041a528
mov esi, eax
add esp, 4
test esi, esi
je 0x40a1df
push 0x60
push 0
push esi
call fcn.00423d50
mov dword [esi], vtable.CWinHttpW.0
add esp, 0xc
mov dword [esi + 4], 0
xor eax, eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x24], 7
mov dword [esi + 0x20], 0
mov word [esi + 0x10], ax
mov dword [esi + 0x3c], 7
mov dword [esi + 0x38], eax
mov word [esi + 0x28], ax
mov dword [esi + 0x54], 7
mov dword [esi + 0x50], eax
mov word [esi + 0x40], ax
mov dword [esi + 0x58], eax
mov word [esi + 0x5c], ax
jmp 0x40a1e1
xor esi, esi
push 0
push 0x44b17c
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x88], 0xf
mov dword [ebp - 0x8c], 0
mov byte [ebp - 0x9c], 0
call fcn.00402db0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x84]
push 0
push 0x44b17c
mov dword [ebp - 0x70], 0xf
mov dword [ebp - 0x74], 0
mov byte [ebp - 0x84], 0
call fcn.00402db0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x6c]
push 0x6e
push str.Mozilla_5.0__Windows_NT_10.0__WOW64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_69.0.3497.100_Safari_537.36
mov dword [ebp - 0x58], 0xf
mov dword [ebp - 0x5c], 0
mov byte [ebp - 0x6c], 0
call fcn.00402db0
push ecx
lea eax, [ebp - 0x9c]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x84]
push eax
push ecx
lea eax, [ebp - 0x6c]
mov ecx, esi
push eax
call fcn.00413c50
cmp dword [ebp - 0x58], 0x10
jb 0x40a291
push dword [ebp - 0x6c]
call fcn.00419d5c
add esp, 4
cmp dword [ebp - 0x70], 0x10
mov dword [ebp - 0x58], 0xf
mov dword [ebp - 0x5c], 0
mov byte [ebp - 0x6c], 0
jb 0x40a2b7
push dword [ebp - 0x84]
call fcn.00419d5c
add esp, 4
mov byte [ebp - 4], 0
cmp dword [ebp - 0x88], 0x10
mov dword [ebp - 0x70], 0xf
mov dword [ebp - 0x74], 0
mov byte [ebp - 0x84], 0
jb 0x40a2e7
push dword [ebp - 0x9c]
call fcn.00419d5c
add esp, 4
mov eax, dword [esi + 4]
mov dword [ebp - 0x88], 0xf
mov dword [ebp - 0x8c], 0
mov byte [ebp - 0x9c], 0
test eax, eax
je 0x40a324
push 0x1388
push 0x1388
push 0x1388
push 0x1388
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
push dword [ebp - 0x50]
mov ecx, esi
call fcn.00413e80
mov edx, dword [esi + 8]
test edx, edx
je 0x40a365
xor ecx, ecx
mov eax, 0x800000
cmp dword [esi + 0x58], 2
cmove ecx, eax
cmp dword [esi + 0x3c], 8
lea eax, [esi + 0x28]
jb 0x40a34e
mov eax, dword [eax]
push ecx
push 0
push 0
push 0
push eax
push 0x44c5fc
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [esi + 0xc], eax
push 3
push 0x44b6b8
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x38], 0xf
mov dword [ebp - 0x3c], 0
mov byte [ebp - 0x4c], 0
call fcn.00402db0
mov dword [ebp - 4], 6
lea ecx, [ebp - 0x34]
push 6
push str.Accept
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x34], 0
call fcn.00402db0
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x34]
mov ecx, esi
push eax
call fcn.00414420
cmp dword [ebp - 0x20], 0x10
jb 0x40a3d2
push dword [ebp - 0x34]
call fcn.00419d5c
add esp, 4
mov byte [ebp - 4], 0
cmp dword [ebp - 0x38], 0x10
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x34], 0
jb 0x40a3f9
push dword [ebp - 0x4c]
call fcn.00419d5c
add esp, 4
push 5
push str.zh_cn
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x38], 0xf
mov dword [ebp - 0x3c], 0
mov byte [ebp - 0x4c], 0
call fcn.00402db0
mov dword [ebp - 4], 8
lea ecx, [ebp - 0x34]
push 0xf
push str.Accept_Language
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x34], 0
call fcn.00402db0
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0x34]
mov ecx, esi
push eax
call fcn.00414420
cmp dword [ebp - 0x20], 0x10
jb 0x40a466
push dword [ebp - 0x34]
call fcn.00419d5c
add esp, 4
mov byte [ebp - 4], 0
cmp dword [ebp - 0x38], 0x10
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x34], 0
jb 0x40a48d
push dword [ebp - 0x4c]
call fcn.00419d5c
add esp, 4
push 0x30
push str.application_x_www_form_urlencoded__CharsetUTF_8
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x38], 0xf
mov dword [ebp - 0x3c], 0
mov byte [ebp - 0x4c], 0
call fcn.00402db0
mov dword [ebp - 4], 0xa
lea ecx, [ebp - 0x34]
push 0xc
push str.Content_Type
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x34], 0
call fcn.00402db0
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp - 0x34]
mov ecx, esi
push eax
call fcn.00414420
cmp dword [ebp - 0x20], 0x10
jb 0x40a4fa
push dword [ebp - 0x34]
call fcn.00419d5c
add esp, 4
mov byte [ebp - 4], 0
cmp dword [ebp - 0x38], 0x10
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x34], 0
jb 0x40a521
push dword [ebp - 0x4c]
call fcn.00419d5c
add esp, 4
push 0xa
push str.Keep_Alive
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x38], 0xf
mov dword [ebp - 0x3c], 0
mov byte [ebp - 0x4c], 0
call fcn.00402db0
mov dword [ebp - 4], 0xc
lea ecx, [ebp - 0x34]
push 0xa
push str.Connection
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x34], 0
call fcn.00402db0
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 0xd
push eax
lea eax, [ebp - 0x34]
mov ecx, esi
push eax
call fcn.00414420
cmp dword [ebp - 0x20], 0x10
jb 0x40a58e
push dword [ebp - 0x34]
call fcn.00419d5c
add esp, 4
mov byte [ebp - 4], 0
cmp dword [ebp - 0x38], 0x10
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x34], 0
jb 0x40a5b5
push dword [ebp - 0x4c]
call fcn.00419d5c
add esp, 4
cmp dword [ebx + 0x14], 0x10
mov ecx, dword [ebx + 0x10]
jb 0x40a5c0
mov ebx, dword [ebx]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x40a5e9
test ebx, ebx
je 0x40a5d6
test ecx, ecx
je 0x40a5d6
push 0
push ecx
push ecx
push ebx
jmp 0x40a5de
push 0
push 0
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x14], 0
xorps xmm0, xmm0
mov ecx, esi
push eax
movq qword [ebp - 0x1c], xmm0
call fcn.00414280
mov dword [ebp - 4], 0xe
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov byte [edi], 0
cmp dword [edi + 0x14], 0x10
mov dword [ebp - 0x54], 1
jb 0x40a62c
mov eax, dword [edi]
jmp 0x40a62e
mov eax, edi
push dword [ebp - 0x18]
mov ecx, edi
push dword [ebp - 0x1c]
push eax
push eax
call fcn.0040d400
push edi
lea eax, [ebp - 0x4c]
push eax
call fcn.00414720
mov ebx, eax
cmp edi, ebx
je 0x40a676
cmp dword [edi + 0x14], 0x10
jb 0x40a65d
push dword [edi]
call fcn.00419d5c
add esp, 4
mov dword [edi + 0x14], 0xf
mov ecx, edi
mov dword [edi + 0x10], 0
push ebx
mov byte [edi], 0
call fcn.0040b660
cmp dword [ebp - 0x38], 0x10
jb 0x40a687
push dword [ebp - 0x4c]
call fcn.00419d5c
add esp, 4
mov edx, dword [esi]
mov ecx, esi
push 1
call dword [edx]
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x40a69f
push ecx
call fcn.00419d5c
add esp, 4
mov eax, edi
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.00418e51
mov esp, ebp
pop ebp
ret 0x10