Function at 0x4048b0
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, 0x258
mov eax, dword [0x4872e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
push edi
push 0x2000
mov dword [ebp - 0x208], ebx
mov dword [ebp - 0x20c], ebx
mov dword [ebp - 0x21c], ebx
call fcn.00411494
mov ecx, dword [ebp + 8]
mov esi, eax
add esp, 4
mov dword [ebp - 0x214], 0x2000
mov dword [ebp - 0x218], ebx
mov edi, 0x1000
sub ecx, esi
lea edx, [edi + 0x7fffeffe]
test edx, edx
je 0x404921
movzx edx, word [ecx + eax]
test dx, dx
je 0x404921
mov word [eax], dx
add eax, 2
dec edi
jne 0x404903
jmp 0x404925
test edi, edi
jne 0x404928
sub eax, 2
xor ecx, ecx
push 0x38
push ecx
lea edx, [ebp - 0x254]
push edx
mov word [eax], cx
call fcn.00412ae0
add esp, 0xc
or eax, 0xffffffff
mov dword [ebp - 0x250], eax
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x220], eax
mov eax, esi
mov dword [ebp - 0x258], 0x3c
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404970
lea ecx, [ebp - 0x258]
push ecx
sub eax, edx
push 0
sar eax, 1
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
jne 0x4049a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x208], eax
mov edi, ebx
jmp 0x404bf9
push 0
push 0
push 0
push 0
push str.Funshion_3.0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov edi, eax
mov dword [ebp - 0x210], edi
test edi, edi
je 0x4049e5
push 0x7530
push 0x7530
push 0xea60
push 0xea60
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test eax, eax
jne 0x4049f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x208], eax
jmp 0x404bf9
xor edx, edx
push 0x1fe
push edx
lea eax, [ebp - 0x202]
push eax
mov word [ebp - 0x204], dx
call fcn.00412ae0
add esp, 0xc
cmp dword [ebp - 0x244], 0x7ffffffe
jbe 0x404a2b
xor ecx, ecx
mov word [ebp - 0x204], cx
jmp 0x404a77
mov edi, dword [ebp - 0x248]
lea eax, [ebp - 0x204]
mov ecx, eax
mov edx, 0xff
sub edi, ecx
mov ecx, dword [ebp - 0x244]
lea ecx, [ecx + edx - 0xff]
test ecx, ecx
je 0x404a65
movzx ecx, word [edi + eax]
test cx, cx
je 0x404a65
mov word [eax], cx
add eax, 2
dec edx
jne 0x404a40
jmp 0x404a69
test edx, edx
jne 0x404a6c
sub eax, 2
mov edi, dword [ebp - 0x210]
xor edx, edx
mov word [eax], dx
mov eax, dword [ebp - 0x240]
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 - 0x218], ecx
test ecx, ecx
jne 0x404aab
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x208], eax
jmp 0x404bf9
mov edx, dword [ebp - 0x22c]
xor eax, eax
cmp dword [ebp - 0x24c], 2
setne al
dec eax
and eax, 0x800000
push eax
push 0
push 0
push 0
push edx
push 0x47d640
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov ebx, eax
test ebx, ebx
jne 0x404aee
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x208], eax
jmp 0x404bf9
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x404b16
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x208], eax
jmp 0x404bf9
push 0
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x404b34
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x208], eax
jmp 0x404bf9
push 0
lea eax, [ebp - 0x20c]
push eax
push esi
push 0
push 0x13
push ebx
mov dword [ebp - 0x20c], 0x1000
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
push esi
call fcn.00411def
add esp, 4
cmp eax, 0xc8
jne 0x4049eb
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpReadData]
lea ecx, [ecx]
lea ecx, [ebp - 0x20c]
push ecx
push ebx
mov dword [ebp - 0x20c], 0
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x404be7
mov edx, dword [ebp - 0x20c]
cmp edx, dword [ebp - 0x214]
jbe 0x404bb8
push esi
call fcn.00411da4
mov eax, dword [ebp - 0x20c]
inc eax
push eax
mov dword [ebp - 0x214], eax
call fcn.00411494
add esp, 8
mov esi, eax
mov eax, dword [ebp - 0x20c]
push eax
push 0
push esi
call fcn.00412ae0
mov edx, dword [ebp - 0x20c]
add esp, 0xc
lea ecx, [ebp - 0x21c]
push ecx
push edx
push esi
push ebx
call edi
cmp dword [ebp - 0x20c], 0
ja 0x404b70
jmp 0x404bf3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x208], eax
mov edi, dword [ebp - 0x210]
push esi
call fcn.00411da4
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
add esp, 4
test ebx, ebx
je 0x404c0f
push ebx
call esi
mov eax, dword [ebp - 0x218]
test eax, eax
je 0x404c1c
push eax
call esi
test edi, edi
je 0x404c23
push edi
call esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x208]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004123dd
mov esp, ebp
pop ebp
ret