Function at 0x4162a0
Capabilities:
Check http status code
Initialize winhttp library
Prepare http request
Read http header
Receive http response

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x4754f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
xor ebx, ebx
push edi
push 0x800
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x208], ebx
mov dword [ebp - 0x20c], ebx
mov dword [ebp - 0x220], ebx
call fcn.004217c0
mov ecx, dword [ebp + 8]
mov esi, eax
add esp, 4
mov dword [ebp - 0x218], 0x800
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x210], ebx
mov edi, 0x400
sub ecx, esi
jmp 0x416310
lea edx, [edi + 0x7ffffbfe]
test edx, edx
je 0x41632e
movzx edx, word [ecx + eax]
cmp dx, bx
je 0x41632e
mov word [eax], dx
add eax, 2
dec edi
jne 0x416310
jmp 0x416332
cmp edi, ebx
jne 0x416335
sub eax, 2
push 0x38
lea edx, [ebp - 0x25c]
xor ecx, ecx
push ebx
push edx
mov word [eax], cx
call fcn.0042c300
add esp, 0xc
or eax, 0xffffffff
mov dword [ebp - 0x258], eax
mov dword [ebp - 0x24c], eax
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x228], eax
mov eax, esi
mov dword [ebp - 0x260], 0x3c
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x416376
lea ecx, [ebp - 0x260]
push ecx
sub eax, edx
push ebx
sar eax, 1
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
je 0x4165d7
push ebx
push ebx
push ebx
push ebx
push str.Funshion_3.0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov edi, eax
mov dword [ebp - 0x214], edi
cmp edi, ebx
je 0x4165d7
push 0x7530
push 0x7530
push 0xea60
push 0xea60
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test eax, eax
je 0x4165d7
push 0x1fe
lea eax, [ebp - 0x202]
xor edx, edx
push ebx
push eax
mov word [ebp - 0x204], dx
call fcn.0042c300
mov ebx, dword [ebp - 0x24c]
add esp, 0xc
cmp ebx, 0x7ffffffe
jbe 0x416416
xor ecx, ecx
mov word [ebp - 0x204], cx
jmp 0x416461
mov edi, dword [ebp - 0x250]
lea eax, [ebp - 0x204]
mov ecx, eax
mov edx, 0xff
sub edi, ecx
jmp 0x416430
lea ecx, [ebx + edx - 0xff]
test ecx, ecx
je 0x41644f
movzx ecx, word [edi + eax]
test cx, cx
je 0x41644f
mov word [eax], cx
add eax, 2
dec edx
jne 0x416430
jmp 0x416453
test edx, edx
jne 0x416456
sub eax, 2
mov edi, dword [ebp - 0x214]
xor edx, edx
mov word [eax], dx
mov eax, dword [ebp - 0x248]
push 0
push eax
lea ecx, [ebp - 0x204]
push ecx
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov ecx, eax
mov dword [ebp - 0x21c], ecx
test ecx, ecx
je 0x4165d7
mov edx, dword [ebp - 0x234]
xor eax, eax
cmp dword [ebp - 0x254], 2
setne al
dec eax
and eax, 0x800000
push eax
push 0
push 0
push 0
push edx
push 0x46d870
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov ebx, eax
mov dword [ebp - 0x210], ebx
test ebx, ebx
je 0x4165d7
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x4165d7
push 0
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x4165d7
push 0x800
push 0
push esi
call fcn.0042c300
add esp, 0xc
push 0
lea eax, [ebp - 0x20c]
push eax
push esi
push 0
push 0x13
push ebx
mov dword [ebp - 0x20c], 0x400
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
push esi
call fcn.00421800
add esp, 4
cmp eax, 0xc8
jne 0x4165dd
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpReadData]
lea esp, [esp]
lea ecx, [ebp - 0x20c]
push ecx
push ebx
mov dword [ebp - 0x20c], 0
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x4165d7
mov edx, dword [ebp - 0x20c]
cmp edx, dword [ebp - 0x218]
jbe 0x416588
push esi
call fcn.00425750
mov eax, dword [ebp - 0x20c]
inc eax
push eax
mov dword [ebp - 0x218], eax
call fcn.004217c0
add esp, 8
mov esi, eax
mov eax, dword [ebp - 0x20c]
push eax
push 0
push esi
call fcn.0042c300
mov edx, dword [ebp - 0x20c]
add esp, 0xc
lea ecx, [ebp - 0x220]
push ecx
push edx
push esi
push ebx
call edi
test eax, eax
je 0x4165d7
mov eax, dword [ebp - 0x220]
push eax
mov eax, dword [ebp - 0x224]
push esi
call fcn.0040f3e0
cmp dword [ebp - 0x20c], 0
jbe 0x416605
mov ebx, dword [ebp - 0x210]
jmp 0x416540
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x208], eax
test eax, eax
je 0x416605
mov eax, dword [ebp - 0x224]
cmp dword [eax + 0x18], 0x10
mov dword [eax + 0x14], 0
jb 0x4165ff
mov eax, dword [eax + 4]
jmp 0x416602
add eax, 4
mov byte [eax], 0
push esi
call fcn.00425750
mov eax, dword [ebp - 0x210]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
add esp, 4
test eax, eax
je 0x416621
push eax
call esi
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x41662e
push eax
call esi
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x41663b
push eax
call esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x208]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00420d00
mov esp, ebp
pop ebp
ret