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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4eb690]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
xor ebx, ebx
push edi
push 0x2000
mov esi, edx
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x208], ebx
mov dword [ebp - 0x20c], ebx
mov dword [ebp - 0x228], ebx
call fcn.0048987a
mov ecx, dword [ebp + 8]
mov edi, eax
add esp, 4
mov dword [ebp - 0x220], 0x2000
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x218], ebx
mov edx, 0x1000
sub ecx, edi
lea ebx, [edx + 0x7fffeffe]
test ebx, ebx
je 0x45506e
movzx ebx, word [ecx + eax]
test bx, bx
je 0x45506e
mov word [eax], bx
add eax, 2
dec edx
jne 0x455050
jmp 0x455072
test edx, edx
jne 0x455075
sub eax, 2
xor edx, edx
push 0x38
mov word [eax], dx
push edx
lea eax, [ebp - 0x260]
push eax
call fcn.0048e940
add esp, 0xc
or eax, 0xffffffff
mov dword [ebp - 0x25c], eax
mov dword [ebp - 0x250], eax
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x22c], eax
mov eax, edi
mov dword [ebp - 0x264], 0x3c
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4550b6
lea ecx, [ebp - 0x264]
push ecx
sub eax, edx
push 0
sar eax, 1
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
je 0x45540b
push 0
push 0
push 0
push 0
push str.Funshion_4.0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov ebx, eax
mov dword [ebp - 0x21c], ebx
test ebx, ebx
je 0x45540b
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
push edx
mov edx, dword [ebp + 0x10]
push eax
push ecx
push edx
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test eax, eax
je 0x45540b
xor eax, eax
push 0x1fe
push eax
lea ecx, [ebp - 0x202]
push ecx
mov word [ebp - 0x204], ax
call fcn.0048e940
add esp, 0xc
cmp dword [ebp - 0x250], 0x7ffffffe
jbe 0x455155
xor edx, edx
mov word [ebp - 0x204], dx
jmp 0x4551a7
mov ebx, dword [ebp - 0x254]
lea eax, [ebp - 0x204]
mov ecx, eax
mov edx, 0xff
sub ebx, ecx
lea ebx, [ebx]
mov ecx, dword [ebp - 0x250]
lea ecx, [ecx + edx - 0xff]
test ecx, ecx
je 0x455195
movzx ecx, word [ebx + eax]
test cx, cx
je 0x455195
mov word [eax], cx
add eax, 2
dec edx
jne 0x455170
jmp 0x455199
test edx, edx
jne 0x45519c
sub eax, 2
mov ebx, dword [ebp - 0x21c]
xor edx, edx
mov word [eax], dx
mov eax, dword [ebp - 0x24c]
push 0
push eax
lea ecx, [ebp - 0x204]
push ecx
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 0x224], eax
test eax, eax
je 0x45540b
mov edx, dword [ebp - 0x210]
xor ecx, ecx
cmp dword [ebp - 0x258], 2
setne cl
dec ecx
and ecx, 0x800000
push ecx
mov ecx, dword [ebp - 0x238]
push 0
push edx
push 0
push ecx
push 0x4d564c
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov ebx, eax
mov dword [ebp - 0x218], ebx
test ebx, ebx
je 0x45540b
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x455233
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [ebp - 0x214]
push 0x20000000
push eax
push edx
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
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 0x45540b
push 0
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x45540b
push 0x2000
push 0
push edi
call fcn.0048e940
add esp, 0xc
push 0
lea eax, [ebp - 0x20c]
push eax
push edi
push 0
push 0x13
push ebx
mov dword [ebp - 0x20c], 0x1000
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
push edi
call fcn.0048ab11
add esp, 4
cmp eax, 0xc8
jne 0x455411
lea ecx, [ebp - 0x20c]
push ecx
push ebx
mov dword [ebp - 0x20c], 0
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x45540b
mov edx, dword [ebp - 0x20c]
cmp edx, dword [ebp - 0x220]
jbe 0x4552ee
push edi
call fcn.0048ad31
mov eax, dword [ebp - 0x20c]
inc eax
push eax
mov dword [ebp - 0x220], eax
call fcn.0048987a
add esp, 8
mov edi, eax
mov eax, dword [ebp - 0x20c]
push eax
push 0
push edi
call fcn.0048e940
mov edx, dword [ebp - 0x20c]
add esp, 0xc
lea ecx, [ebp - 0x228]
push ecx
push edx
push edi
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x45540b
mov ebx, dword [ebp - 0x228]
push edi
mov ecx, esi
call fcn.00416290
test al, al
je 0x4553a2
mov ecx, esi
call fcn.0040a690
mov ecx, edi
sub ecx, eax
mov dword [ebp - 0x214], ecx
mov ecx, esi
call fcn.00404290
mov ecx, esi
cmp eax, dword [ebp - 0x214]
jb 0x4553ff
call fcn.00404290
sub eax, dword [ebp - 0x214]
cmp eax, ebx
jae 0x455367
mov ebx, eax
mov eax, dword [esi + 0x10]
or ecx, 0xffffffff
sub ecx, eax
cmp ecx, ebx
jbe 0x455404
test ebx, ebx
je 0x4553eb
add eax, ebx
push 0
push eax
mov ecx, esi
mov dword [ebp - 0x210], eax
call fcn.0040a5f0
test al, al
je 0x4553eb
push ebx
mov ecx, esi
call fcn.0040a690
add eax, dword [ebp - 0x214]
push eax
jmp 0x4553ca
mov eax, dword [esi + 0x10]
or ecx, 0xffffffff
sub ecx, eax
cmp ecx, ebx
jbe 0x455404
test ebx, ebx
je 0x4553eb
add eax, ebx
push 0
push eax
mov ecx, esi
mov dword [ebp - 0x210], eax
call fcn.0040a5f0
test al, al
je 0x4553eb
push ebx
push edi
mov ecx, esi
call fcn.0040a690
add eax, dword [esi + 0x10]
push eax
call fcn.0040a910
mov edx, dword [ebp - 0x210]
add esp, 0xc
push edx
mov ecx, esi
call fcn.0040a940
cmp dword [ebp - 0x20c], 0
jbe 0x455424
mov ebx, dword [ebp - 0x218]
jmp 0x4552a2
call fcn.0040a2c0
mov ecx, esi
call fcn.00404450
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x208], eax
test eax, eax
je 0x455424
push 0
mov ecx, esi
call fcn.0040a940
push edi
call fcn.0048ad31
mov eax, dword [ebp - 0x218]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
add esp, 4
test eax, eax
je 0x455440
push eax
call esi
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x45544d
push eax
call esi
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x45545a
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.0048a346
mov esp, ebp
pop ebp
ret