Function at 0x466890
Capabilities:
Prepare http request
Set http header

Disassembly:
sub esp, 0x240
mov eax, dword [0x65f810]
xor eax, esp
mov dword [esp + 0x23c], eax
push esi
mov esi, ecx
push edi
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.DLL_InterlockedIncrement]
push 0x3c
lea eax, [esp + 0xc]
push 0
push eax
call fcn.00578cb0
add esp, 0xc
cmp dword [esi + 0x44], 8
mov dword [esp + 8], 0x3c
jb 0x4668d6
mov eax, dword [esi + 0x30]
jmp 0x4668d9
lea eax, [esi + 0x30]
lea edx, [esp + 8]
push edx
push 0
push 0
lea ecx, [esp + 0x50]
push eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], 0x100
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0x20], 0xffffffff
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
jne 0x466962
mov eax, dword [esi + 0x24]
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test eax, eax
je 0x46691d
push eax
call edi
mov eax, dword [esi + 0x20]
test eax, eax
je 0x466927
push eax
call edi
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x466931
push eax
call edi
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.DLL_InterlockedDecrement]
test eax, eax
jne 0x466949
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x23c]
xor ecx, esp
call fcn.005792fc
add esp, 0x240
ret
xor eax, eax
cmp dword [esp + 0x14], 2
setne al
dec eax
and eax, 0x800000
cmp dword [esi + 0x60], 8
mov edi, eax
jb 0x46697f
mov eax, dword [esi + 0x4c]
jmp 0x466982
lea eax, [esi + 0x4c]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [esi + 0x28], eax
push 0
cmp eax, 0xffffffff
jne 0x466a09
push 0
push 0x7ec
lea ecx, [esi + 8]
call fcn.00456240
mov eax, dword [esi + 0x24]
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test eax, eax
je 0x4669c4
push eax
call edi
mov eax, dword [esi + 0x20]
test eax, eax
je 0x4669ce
push eax
call edi
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x4669d8
push eax
call edi
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.DLL_InterlockedDecrement]
test eax, eax
jne 0x4669f0
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x23c]
xor ecx, esp
call fcn.005792fc
add esp, 0x240
ret
mov ecx, dword [esp + 0x24]
mov eax, dword [esi + 0x1c]
push ecx
lea edx, [esp + 0x4c]
push edx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov ecx, dword [esp + 0x34]
push edi
push 0
push 0
push 0x5f32d8
push ecx
push 0x61da84
push eax
mov dword [esi + 0x20], eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [esi + 0x24], eax
test eax, eax
jne 0x466a82
push eax
push eax
push 0x7ec
lea ecx, [esi + 8]
call fcn.00456240
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.DLL_InterlockedDecrement]
test eax, eax
jne 0x4669f0
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x23c]
xor ecx, esp
call fcn.005792fc
add esp, 0x240
ret
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
push 0x20000000
push 0xffffffffffffffff
push str.Accept:_text_html_____q1
push eax
call edi
mov ecx, dword [esi + 0x24]
push 0x20000000
push 0xffffffffffffffff
push str.Accept_Language:_zh_CN_q1.0
push ecx
call edi
mov edx, dword [esi + 0x24]
push 0x20000000
push 0xffffffffffffffff
push 0x5f1d3c
push edx
call edi
mov eax, dword [esi + 0x24]
push 0x20000000
push 0xffffffffffffffff
push 0x5f3780
push eax
call edi
mov ecx, dword [esi + 0x24]
push 0
push 0x7e4c00
push 0x4665e0
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
cmp eax, 0xffffffff
jne 0x466b20
push 0
push 0
push 0x7ec
lea ecx, [esi + 8]
call fcn.00456240
mov ecx, esi
call fcn.004665b0
mov ecx, esi
call fcn.0047d810
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x23c]
xor ecx, esp
call fcn.005792fc
add esp, 0x240
ret
mov edx, dword [esi + 0x24]
push esi
push 0
push 0
push 0
push 0
push 0
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x466ae8
mov ecx, dword [esp + 0x244]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.005792fc
add esp, 0x240
ret