Function at 0x454eb0
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 [0x4e06b8]
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.004819f2
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 0x454f3e
movzx ebx, word [ecx + eax]
test bx, bx
je 0x454f3e
mov word [eax], bx
add eax, 2
dec edx
jne 0x454f20
jmp 0x454f42
test edx, edx
jne 0x454f45
sub eax, 2
xor edx, edx
push 0x38
mov word [eax], dx
push edx
lea eax, [ebp - 0x260]
push eax
call fcn.00487e90
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 0x454f86
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 0x4552db
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 0x4552db
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 0x4552db
xor eax, eax
push 0x1fe
push eax
lea ecx, [ebp - 0x202]
push ecx
mov word [ebp - 0x204], ax
call fcn.00487e90
add esp, 0xc
cmp dword [ebp - 0x250], 0x7ffffffe
jbe 0x455025
xor edx, edx
mov word [ebp - 0x204], dx
jmp 0x455077
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 0x455065
movzx ecx, word [ebx + eax]
test cx, cx
je 0x455065
mov word [eax], cx
add eax, 2
dec edx
jne 0x455040
jmp 0x455069
test edx, edx
jne 0x45506c
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 0x4552db
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 0x4ca1c4
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov ebx, eax
mov dword [ebp - 0x218], ebx
test ebx, ebx
je 0x4552db
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x455103
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 0x4552db
push 0
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x4552db
push 0x2000
push 0
push edi
call fcn.00487e90
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.00482c31
add esp, 4
cmp eax, 0xc8
jne 0x4552e1
lea ecx, [ebp - 0x20c]
push ecx
push ebx
mov dword [ebp - 0x20c], 0
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x4552db
mov edx, dword [ebp - 0x20c]
cmp edx, dword [ebp - 0x220]
jbe 0x4551be
push edi
call fcn.00482e51
mov eax, dword [ebp - 0x20c]
inc eax
push eax
mov dword [ebp - 0x220], eax
call fcn.004819f2
add esp, 8
mov edi, eax
mov eax, dword [ebp - 0x20c]
push eax
push 0
push edi
call fcn.00487e90
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 0x4552db
mov ebx, dword [ebp - 0x228]
push edi
mov ecx, esi
call fcn.00416350
test al, al
je 0x455272
mov ecx, esi
call fcn.0040aaa0
mov ecx, edi
sub ecx, eax
mov dword [ebp - 0x214], ecx
mov ecx, esi
call fcn.004027a0
mov ecx, esi
cmp eax, dword [ebp - 0x214]
jb 0x4552cf
call fcn.004027a0
sub eax, dword [ebp - 0x214]
cmp eax, ebx
jae 0x455237
mov ebx, eax
mov eax, dword [esi + 0x10]
or ecx, 0xffffffff
sub ecx, eax
cmp ecx, ebx
jbe 0x4552d4
test ebx, ebx
je 0x4552bb
add eax, ebx
push 0
push eax
mov ecx, esi
mov dword [ebp - 0x210], eax
call fcn.0040a6c0
test al, al
je 0x4552bb
push ebx
mov ecx, esi
call fcn.0040aaa0
add eax, dword [ebp - 0x214]
push eax
jmp 0x45529a
mov eax, dword [esi + 0x10]
or ecx, 0xffffffff
sub ecx, eax
cmp ecx, ebx
jbe 0x4552d4
test ebx, ebx
je 0x4552bb
add eax, ebx
push 0
push eax
mov ecx, esi
mov dword [ebp - 0x210], eax
call fcn.0040a6c0
test al, al
je 0x4552bb
push ebx
push edi
mov ecx, esi
call fcn.0040aaa0
add eax, dword [esi + 0x10]
push eax
call fcn.0040a990
mov edx, dword [ebp - 0x210]
add esp, 0xc
push edx
mov ecx, esi
call fcn.0040a9c0
cmp dword [ebp - 0x20c], 0
jbe 0x4552f4
mov ebx, dword [ebp - 0x218]
jmp 0x455172
call fcn.004043a0
mov ecx, esi
call fcn.00404560
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x208], eax
test eax, eax
je 0x4552f4
push 0
mov ecx, esi
call fcn.0040a9c0
push edi
call fcn.00482e51
mov eax, dword [ebp - 0x218]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
add esp, 4
test eax, eax
je 0x455310
push eax
call esi
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x45531d
push eax
call esi
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x45532a
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.00482469
mov esp, ebp
pop ebp
ret