Function at 0x4087a0
Capabilities:
Check http status code
Delete file
Initialize winhttp library
Move file
Prepare http request
Read http header
Receive http response
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x470
mov eax, dword [0x46d674]
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 dword [ebp - 0x424], eax
mov dword [ebp - 0x410], ebx
mov dword [ebp - 0x414], ebx
mov dword [ebp - 0x42c], ebx
call fcn.0043e15a
push 0x206
lea edx, [ebp - 0x20a]
xor ecx, ecx
push ebx
push edx
mov esi, eax
mov dword [ebp - 0x428], 0x2000
mov word [ebp - 0x20c], cx
call fcn.00446e60
mov ecx, dword [ebp + 8]
add esp, 0x10
mov dword [ebp - 0x420], ebx
mov dword [ebp - 0x430], ebx
mov dword [ebp - 0x41c], ebx
mov dword [ebp - 0x418], 0xffffffff
mov edx, 0x1000
mov eax, esi
sub ecx, esi
nop
lea edi, [edx + 0x7fffeffe]
test edi, edi
je 0x40884e
movzx edi, word [ecx + eax]
cmp di, bx
je 0x40884e
mov word [eax], di
add eax, 2
dec edx
jne 0x408830
jmp 0x408852
cmp edx, ebx
jne 0x408855
sub eax, 2
push 0x38
lea edx, [ebp - 0x46c]
xor ecx, ecx
push ebx
push edx
mov word [eax], cx
call fcn.00446e60
add esp, 0xc
or eax, 0xffffffff
mov dword [ebp - 0x468], eax
mov dword [ebp - 0x45c], eax
mov dword [ebp - 0x440], eax
mov dword [ebp - 0x438], eax
mov eax, esi
mov dword [ebp - 0x470], 0x3c
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x408896
lea ecx, [ebp - 0x470]
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 0x408b35
push ebx
push ebx
push ebx
push ebx
push str.Funshion_4.0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov edi, eax
mov dword [ebp - 0x420], edi
cmp edi, ebx
je 0x408b35
mov edx, dword [ebp + 0x10]
push 0x7530
push 0x7530
push edx
push 0xea60
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test eax, eax
je 0x408b35
push 0x1fe
lea ecx, [ebp - 0x40a]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x40c], ax
call fcn.00446e60
mov ebx, dword [ebp - 0x45c]
add esp, 0xc
cmp ebx, 0x7ffffffe
jbe 0x408935
xor edx, edx
mov word [ebp - 0x40c], dx
jmp 0x408981
mov edi, dword [ebp - 0x460]
lea eax, [ebp - 0x40c]
mov ecx, eax
mov edx, 0xff
sub edi, ecx
lea ebx, [ebx]
lea ecx, [ebx + edx - 0xff]
test ecx, ecx
je 0x40896f
movzx ecx, word [edi + eax]
test cx, cx
je 0x40896f
mov word [eax], cx
add eax, 2
dec edx
jne 0x408950
jmp 0x408973
test edx, edx
jne 0x408976
sub eax, 2
mov edi, dword [ebp - 0x420]
xor edx, edx
mov word [eax], dx
mov eax, dword [ebp - 0x458]
push 0
push eax
lea ecx, [ebp - 0x40c]
push ecx
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov ecx, eax
mov dword [ebp - 0x430], ecx
test ecx, ecx
je 0x408b35
mov edx, dword [ebp - 0x444]
xor eax, eax
cmp dword [ebp - 0x464], 2
setne al
dec eax
and eax, 0x800000
push eax
push 0
push 0
push 0
push edx
push 0x459d88
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov ebx, eax
mov dword [ebp - 0x41c], ebx
test ebx, ebx
je 0x408b35
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 0x408b35
push 0
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x408b35
push 0
lea eax, [ebp - 0x414]
push eax
push esi
push 0
push 0x13
push ebx
mov dword [ebp - 0x414], 0x1000
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
push esi
call fcn.0043f33c
add esp, 4
cmp eax, 0xc8
jne 0x408b3b
mov edi, dword [ebp - 0x424]
test edi, edi
je 0x408bc0
cmp word [edi], 0
je 0x408bc0
lea eax, [ebp - 0x20c]
mov ecx, eax
mov edx, 0x104
sub edi, ecx
lea ebx, [ebx]
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x408a8e
movzx ecx, word [edi + eax]
test cx, cx
je 0x408a8e
mov word [eax], cx
add eax, 2
dec edx
jne 0x408a70
jmp 0x408a92
test edx, edx
jne 0x408a95
sub eax, 2
xor edx, edx
mov word [eax], dx
mov edx, 0x104
lea eax, [ebp - 0x20c]
cmp word [eax], 0
je 0x408ab3
add eax, 2
dec edx
jne 0x408aa5
jmp 0x408ad1
test edx, edx
je 0x408ad1
mov ecx, 0x104
sub ecx, edx
mov eax, 0x104
sub eax, ecx
lea ecx, [ebp + ecx*2 - 0x20c]
call fcn.00407c30
mov eax, dword [ebp - 0x424]
push eax
mov edx, 0x7ffffffe
mov eax, 0x1000
mov ecx, esi
call fcn.004078f0
push 0x5c
push esi
call fcn.0043f4ca
add esp, 8
test eax, eax
je 0x408b05
xor ecx, ecx
push esi
push ecx
mov word [eax], cx
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x418], edi
cmp edi, 0xffffffff
jne 0x408bc6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x410], eax
push esi
call fcn.0043ed72
mov eax, dword [ebp - 0x418]
add esp, 4
cmp eax, 0xffffffff
je 0x408b5c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x41c]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test eax, eax
je 0x408b6f
push eax
call esi
mov eax, dword [ebp - 0x430]
test eax, eax
je 0x408b7c
push eax
call esi
mov eax, dword [ebp - 0x420]
test eax, eax
je 0x408b89
push eax
call esi
mov esi, dword [ebp - 0x410]
test esi, esi
jne 0x408c8f
mov ecx, dword [ebp - 0x424]
push 1
push ecx
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043e417
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x418]
lea eax, [ebp - 0x414]
push eax
push ebx
mov dword [ebp - 0x414], 0
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x408b35
mov ecx, dword [ebp - 0x414]
cmp ecx, dword [ebp - 0x428]
jbe 0x408c12
push esi
call fcn.0043ed72
mov eax, dword [ebp - 0x414]
inc eax
push eax
mov dword [ebp - 0x428], eax
call fcn.0043e15a
add esp, 8
mov esi, eax
mov edx, dword [ebp - 0x414]
push edx
push 0
push esi
call fcn.00446e60
mov ecx, dword [ebp - 0x414]
add esp, 0xc
lea eax, [ebp - 0x42c]
push eax
push ecx
push esi
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x408c66
cmp edi, 0xffffffff
je 0x408c66
mov eax, dword [ebp - 0x42c]
xor ebx, ebx
push ebx
lea edx, [ebp - 0x434]
push edx
push eax
push esi
push edi
mov dword [ebp - 0x434], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x408c7e
cmp dword [ebp - 0x414], 0
jbe 0x408b41
mov ebx, dword [ebp - 0x41c]
jmp 0x408bc0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x414], ebx
jmp 0x408b3b
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043e417
mov esp, ebp
pop ebp
ret