Function at 0x455530
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 [0x5176f0]
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.004ad653
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 0x4555be
movzx ebx, word [ecx + eax]
test bx, bx
je 0x4555be
mov word [eax], bx
add eax, 2
dec edx
jne 0x4555a0
jmp 0x4555c2
test edx, edx
jne 0x4555c5
sub eax, 2
xor edx, edx
push 0x38
mov word [eax], dx
push edx
lea eax, [ebp - 0x260]
push eax
call fcn.004b28e0
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 0x455606
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 0x45595b
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 0x45595b
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 0x45595b
xor eax, eax
push 0x1fe
push eax
lea ecx, [ebp - 0x202]
push ecx
mov word [ebp - 0x204], ax
call fcn.004b28e0
add esp, 0xc
cmp dword [ebp - 0x250], 0x7ffffffe
jbe 0x4556a5
xor edx, edx
mov word [ebp - 0x204], dx
jmp 0x4556f7
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 0x4556e5
movzx ecx, word [ebx + eax]
test cx, cx
je 0x4556e5
mov word [eax], cx
add eax, 2
dec edx
jne 0x4556c0
jmp 0x4556e9
test edx, edx
jne 0x4556ec
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 0x45595b
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 0x501bb4
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov ebx, eax
mov dword [ebp - 0x218], ebx
test ebx, ebx
je 0x45595b
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x455783
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 0x45595b
push 0
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x45595b
push 0x2000
push 0
push edi
call fcn.004b28e0
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.004ae8f1
add esp, 4
cmp eax, 0xc8
jne 0x455961
lea ecx, [ebp - 0x20c]
push ecx
push ebx
mov dword [ebp - 0x20c], 0
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x45595b
mov edx, dword [ebp - 0x20c]
cmp edx, dword [ebp - 0x220]
jbe 0x45583e
push edi
call fcn.004aeb11
mov eax, dword [ebp - 0x20c]
inc eax
push eax
mov dword [ebp - 0x220], eax
call fcn.004ad653
add esp, 8
mov edi, eax
mov eax, dword [ebp - 0x20c]
push eax
push 0
push edi
call fcn.004b28e0
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 0x45595b
mov ebx, dword [ebp - 0x228]
push edi
mov ecx, esi
call fcn.00416820
test al, al
je 0x4558f2
mov ecx, esi
call fcn.0040b0c0
mov ecx, edi
sub ecx, eax
mov dword [ebp - 0x214], ecx
mov ecx, esi
call fcn.004042b0
mov ecx, esi
cmp eax, dword [ebp - 0x214]
jb 0x45594f
call fcn.004042b0
sub eax, dword [ebp - 0x214]
cmp eax, ebx
jae 0x4558b7
mov ebx, eax
mov eax, dword [esi + 0x10]
or ecx, 0xffffffff
sub ecx, eax
cmp ecx, ebx
jbe 0x455954
test ebx, ebx
je 0x45593b
add eax, ebx
push 0
push eax
mov ecx, esi
mov dword [ebp - 0x210], eax
call fcn.0040acc0
test al, al
je 0x45593b
push ebx
mov ecx, esi
call fcn.0040b0c0
add eax, dword [ebp - 0x214]
push eax
jmp 0x45591a
mov eax, dword [esi + 0x10]
or ecx, 0xffffffff
sub ecx, eax
cmp ecx, ebx
jbe 0x455954
test ebx, ebx
je 0x45593b
add eax, ebx
push 0
push eax
mov ecx, esi
mov dword [ebp - 0x210], eax
call fcn.0040acc0
test al, al
je 0x45593b
push ebx
push edi
mov ecx, esi
call fcn.0040b0c0
add eax, dword [esi + 0x10]
push eax
call fcn.0040afb0
mov edx, dword [ebp - 0x210]
add esp, 0xc
push edx
mov ecx, esi
call fcn.0040afe0
cmp dword [ebp - 0x20c], 0
jbe 0x455974
mov ebx, dword [ebp - 0x218]
jmp 0x4557f2
call fcn.004042d0
mov ecx, esi
call fcn.0040aa20
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x208], eax
test eax, eax
je 0x455974
push 0
mov ecx, esi
call fcn.0040afe0
push edi
call fcn.004aeb11
mov eax, dword [ebp - 0x218]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
add esp, 4
test eax, eax
je 0x455990
push eax
call esi
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x45599d
push eax
call esi
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x4559aa
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.004ae123
mov esp, ebp
pop ebp
ret