Function at 0x41c582
Capabilities:
Prepare http request
Read http header
Receive http response
Send data
Send http request
Set http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x442b2c
mov eax, dword fs:[0]
push eax
mov eax, 0x15d4
call 0x43a5d0
mov eax, dword [0x458060]
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 + 8]
mov dword [ebp - 0x1584], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x157c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1588], eax
mov eax, dword [ebp + 0x14]
push 0x38
mov dword [ebp - 0x158c], eax
xor edi, edi
lea eax, [ebp - 0x15cc]
push edi
push eax
mov ebx, ecx
call 0x42b020
add esp, 0xc
xor eax, eax
push 0xc6
mov word [ebp - 0x1a8], ax
lea eax, [ebp - 0x1a6]
push edi
push eax
call 0x42b020
add esp, 0xc
xor eax, eax
push 0x3e6
mov word [ebp - 0x590], ax
lea eax, [ebp - 0x58e]
push edi
push eax
call 0x42b020
add esp, 0xc
xor eax, eax
push 0x62
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x76]
push edi
push eax
call 0x42b020
add esp, 0xc
xor eax, eax
push 0x62
mov word [ebp - 0xe0], ax
lea eax, [ebp - 0xde]
push edi
push eax
call 0x42b020
add esp, 0xc
xor eax, eax
mov esi, 0x7ce
push esi
mov word [ebp - 0xd60], ax
lea eax, [ebp - 0xd5e]
push edi
push eax
call 0x42b020
add esp, 0xc
xor eax, eax
push esi
mov word [ebp - 0x1530], ax
lea eax, [ebp - 0x152e]
push edi
push eax
call 0x42b020
lea eax, [ebp - 0x1a8]
mov dword [ebp - 0x15cc], eax
lea eax, [ebp - 0x590]
mov dword [ebp - 0x15c0], eax
add esp, 0xc
lea eax, [ebp - 0x78]
mov dword [ebp - 0x15b4], eax
push 0x32
pop eax
lea ecx, [ebp - 0xe0]
mov dword [ebp - 0x15b0], eax
mov dword [ebp - 0x15a8], eax
mov dword [ebp - 0x15d0], 0x3c
mov dword [ebp - 0x15c8], 0x64
mov dword [ebp - 0x15bc], 0x1f4
mov dword [ebp - 0x15ac], ecx
lea eax, [ebp - 0xd60]
mov dword [ebp - 0x15a4], eax
mov eax, 0x3e8
mov dword [ebp - 0x15a0], eax
lea ecx, [ebp - 0x1530]
mov dword [ebp - 0x1598], eax
mov eax, dword [ebp - 0x1584]
lea esi, [ebp - 0x1580]
mov dword [ebp - 0x159c], ecx
call fcn.0040ffcf
mov esi, dword [eax]
mov dword [ebp - 0x1578], esi
mov dword [eax], edi
mov dword [ebp - 0x15d8], esi
mov dword [ebp - 4], edi
push dword [ebp - 0x1580]
call fcn.004273e1
pop ecx
lea eax, [ebp - 0x15d0]
push eax
push edi
push edi
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
jne 0x41c773
call dword [sym.imp.KERNEL32.dll_GetLastError]
or dword [ebp - 0x156c], 0xffffffff
push esi
call fcn.004273e1
pop ecx
jmp 0x41cba2
mov eax, dword [ebx + 0x50]
cmp eax, edi
je 0x41c794
cmp dword [ebx + 0x54], 0x10
jb 0x41c785
mov ecx, dword [ebx + 0x40]
jmp 0x41c788
lea ecx, [ebx + 0x40]
push eax
push ecx
push 0x29
push dword [ebx]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov ecx, dword [ebx + 0x18]
cmp ecx, edi
je 0x41c7b5
cmp dword [ebx + 0x1c], 0x10
jb 0x41c7a6
mov eax, dword [ebx + 8]
jmp 0x41c7a9
lea eax, [ebx + 8]
push ecx
push eax
push 0x26
push dword [ebx]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
cmp dword [ebx + 0x34], edi
je 0x41c7c6
mov dword [ebp - 0x156c], 0xfffffff6
jmp 0x41c767
push edi
push dword [ebp - 0x15b8]
lea eax, [ebp - 0x590]
push eax
push dword [ebx]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 0x1584], eax
cmp eax, edi
jne 0x41c802
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov dword [ebp - 0x156c], 0xfffffffe
call fcn.004273e1
pop ecx
jmp 0x41cb8e
mov eax, dword [ebp - 0x157c]
lea esi, [ebp - 0x1570]
call fcn.0040ffcf
mov ebx, dword [eax]
mov dword [ebp - 0x157c], ebx
mov dword [eax], edi
mov dword [ebp - 0x15d4], ebx
push dword [ebp - 0x1570]
call fcn.004273e1
xor eax, eax
pop ecx
mov dword [ebp - 0x1550], 7
mov dword [ebp - 0x1554], edi
mov word [ebp - 0x1564], ax
lea eax, [ebp - 0xd60]
lea esi, [ebp - 0x1568]
mov byte [ebp - 4], 2
call fcn.0040217e
lea eax, [ebp - 0x1530]
push eax
mov eax, esi
push eax
call fcn.00402095
cmp dword [ebp - 0x1550], 8
mov eax, dword [ebp - 0x1564]
mov dword [ebp - 0x1594], 0x44b608
mov dword [ebp - 0x1590], edi
jae 0x41c891
lea eax, [ebp - 0x1564]
push edi
lea ecx, [ebp - 0x1594]
push ecx
push ebx
push str.HTTP_1.1
push eax
push 0x44b630
push dword [ebp - 0x1584]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [ebp - 0x1570], eax
cmp eax, edi
jne 0x41c8df
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x156c], 0xfffffffd
push edi
push 1
lea esi, [ebp - 0x1568]
call fcn.004021f4
push ebx
jmp 0x41cb68
xor eax, eax
mov word [ebp - 0x1548], ax
mov eax, str.Accept_Language:_zh_CN_r_nConnection:_Keep_Alive_r_nCache_Control:_no_cache_r_n
lea esi, [ebp - 0x154c]
mov dword [ebp - 0x1534], 7
mov dword [ebp - 0x1538], edi
call fcn.0040217e
mov ecx, dword [ebp - 0x1588]
mov byte [ebp - 4], 3
cmp ecx, edi
je 0x41c92c
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x41c92c
push str.Content_Type:_application_x_www_form_urlencoded_r_n
mov eax, esi
push eax
call fcn.00402095
cmp dword [ebp - 0x1534], 8
mov eax, dword [ebp - 0x1548]
jae 0x41c941
lea eax, [ebp - 0x1548]
push 0xa0000000
push dword [ebp - 0x1538]
push eax
push dword [ebp - 0x1570]
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x41c980
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
push 1
lea esi, [ebp - 0x154c]
mov dword [ebp - 0x156c], 0xfffffff9
call fcn.004021f4
jmp 0x41c8cb
mov esi, 0x4000
push esi
call fcn.004273d6
mov ebx, eax
pop ecx
mov dword [ebp - 0x15dc], ebx
mov ecx, dword [ebp - 0x1588]
mov byte [ebp - 4], 5
mov dword [ebp - 0x156c], edi
cmp ecx, edi
je 0x41c9b3
mov eax, dword [ecx]
call dword [eax + 8]
mov dword [ebp - 0x156c], eax
push edi
push dword [ebp - 0x156c]
push edi
push edi
push edi
push edi
push dword [ebp - 0x1570]
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x41c9e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x156c], 0xfffffffc
jmp 0x41cb3f
cmp dword [ebp - 0x1588], edi
je 0x41ca66
cmp dword [ebp - 0x156c], edi
je 0x41ca66
mov dword [ebp - 0x1580], edi
mov eax, dword [ebp - 0x156c]
sub eax, dword [ebp - 0x1580]
mov dword [ebp - 0x1574], eax
cmp eax, esi
jbe 0x41ca17
mov eax, esi
mov dword [ebp - 0x1574], eax
cmp eax, edi
je 0x41ca66
mov ecx, dword [ebp - 0x1588]
mov edx, dword [ecx]
push eax
push ebx
call dword [edx + 0x10]
mov dword [ebp - 0x1574], eax
cmp eax, edi
je 0x41ca51
add dword [ebp - 0x1580], eax
lea ecx, [ebp - 0x1574]
push ecx
push eax
push ebx
push dword [ebp - 0x1570]
call dword [sym.imp.WINHTTP.dll_WinHttpWriteData]
test eax, eax
jne 0x41c9f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x156c], 0xfffffff7
jmp 0x41cb3f
push edi
push dword [ebp - 0x1570]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x41ca8c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x156c], 0xfffffffb
jmp 0x41cb3f
push edi
lea eax, [ebp - 0x1574]
push eax
push ebx
push edi
push 0x13
push dword [ebp - 0x1570]
mov dword [ebp - 0x1574], esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x41cac0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x156c], 0xfffffffa
jmp 0x41cb3f
push ebx
call fcn.00427ef7
pop ecx
mov dword [ebp - 0x156c], eax
cmp dword [ebp - 0x158c], edi
je 0x41cb3f
push edi
lea eax, [ebp - 0x1574]
push eax
push ebx
push edi
push 5
push dword [ebp - 0x1570]
mov dword [ebp - 0x1574], esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x41cb26
push ebx
call fcn.00427ef7
pop ecx
mov ecx, dword [ebp - 0x158c]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x41cb26
cmp dword [ebp - 0x1574], edi
je 0x41cb3f
push dword [ebp - 0x1574]
mov ecx, dword [ebp - 0x158c]
mov eax, dword [ecx]
push ebx
call dword [eax + 0xc]
lea eax, [ebp - 0x1574]
push eax
push esi
push ebx
push dword [ebp - 0x1570]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x41cb0c
push ebx
call fcn.004273e1
pop ecx
push edi
push 1
lea esi, [ebp - 0x154c]
call fcn.004021f4
push edi
push 1
lea esi, [ebp - 0x1568]
call fcn.004021f4
push dword [ebp - 0x157c]
call fcn.004273e1
pop ecx
push dword [ebp - 0x1578]
call fcn.004273e1
pop ecx
cmp dword [ebp - 0x1570], edi
je 0x41cb8e
push dword [ebp - 0x1570]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [ebp - 0x1584], edi
je 0x41cba2
push dword [ebp - 0x1584]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [ebp - 0x156c]
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.004273ec
leave
ret 0x10