Function at 0x406b20
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 [0x418080]
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.00408429
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.0040c8f0
mov ecx, dword [ebp + 8]
add esp, 0x10
mov dword [ebp - 0x420], ebx
mov dword [ebp - 0x430], ebx
mov dword [ebp - 0x418], ebx
mov dword [ebp - 0x41c], 0xffffffff
mov edx, 0x1000
mov eax, esi
sub ecx, esi
nop
lea edi, [edx + 0x7fffeffe]
test edi, edi
je 0x406bce
movzx edi, word [ecx + eax]
cmp di, bx
je 0x406bce
mov word [eax], di
add eax, 2
dec edx
jne 0x406bb0
jmp 0x406bd2
cmp edx, ebx
jne 0x406bd5
sub eax, 2
push 0x38
lea edx, [ebp - 0x46c]
xor ecx, ecx
push ebx
push edx
mov word [eax], cx
call fcn.0040c8f0
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 0x406c16
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 0x406ee9
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 0x406ee9
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
push 0x7530
push 0x7530
push edx
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test eax, eax
je 0x406ee9
push 0x1fe
lea edx, [ebp - 0x40a]
xor ecx, ecx
push ebx
push edx
mov word [ebp - 0x40c], cx
call fcn.0040c8f0
mov ebx, dword [ebp - 0x45c]
add esp, 0xc
cmp ebx, 0x7ffffffe
jbe 0x406cb4
xor eax, eax
mov word [ebp - 0x40c], ax
jmp 0x406d01
mov edi, dword [ebp - 0x460]
lea eax, [ebp - 0x40c]
mov ecx, eax
mov edx, 0xff
sub edi, ecx
lea esp, [esp]
lea ecx, [ebx + edx - 0xff]
test ecx, ecx
je 0x406cef
movzx ecx, word [edi + eax]
test cx, cx
je 0x406cef
mov word [eax], cx
add eax, 2
dec edx
jne 0x406cd0
jmp 0x406cf3
test edx, edx
jne 0x406cf6
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 0x406ee9
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 0x415e2c
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov edi, eax
mov dword [ebp - 0x418], edi
test edi, edi
je 0x406ee9
push 0
push 0
push 0
push 0
push 0
push 0
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x406ee9
push 0
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x406ee9
push 0
lea eax, [ebp - 0x414]
push eax
push esi
push 0
push 0x13
push edi
mov dword [ebp - 0x414], 0x1000
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
push esi
call fcn.00409007
add esp, 4
cmp eax, 0xc8
jne 0x406eef
mov ebx, dword [ebp - 0x424]
test ebx, ebx
je 0x406f74
cmp word [ebx], 0
je 0x406f74
lea edx, [eax + 0x3c]
lea eax, [ebp - 0x20c]
mov edi, ebx
mov ecx, eax
sub edi, ecx
lea ebx, [ebx]
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x406e0e
movzx ecx, word [edi + eax]
test cx, cx
je 0x406e0e
mov word [eax], cx
add eax, 2
dec edx
jne 0x406df0
jmp 0x406e12
test edx, edx
jne 0x406e15
sub eax, 2
xor edx, edx
mov word [eax], dx
mov eax, 0x104
lea ecx, [ebp - 0x20c]
cmp word [ecx], dx
je 0x406e32
add ecx, 2
dec eax
jne 0x406e25
jmp 0x406e8b
test eax, eax
je 0x406e8b
mov edx, 0x104
sub edx, eax
mov ecx, 0x104
sub ecx, edx
lea eax, [ebp + edx*2 - 0x20c]
je 0x406e7d
mov ebx, 0x415e34
lea edi, [ecx + edx + 0x7ffffefb]
sub ebx, eax
jmp 0x406e60
test edi, edi
je 0x406e79
movzx edx, word [ebx + eax]
test dx, dx
je 0x406e79
mov word [eax], dx
add eax, 2
dec edi
dec ecx
jne 0x406e60
jmp 0x406e7d
test ecx, ecx
jne 0x406e80
sub eax, 2
mov ebx, dword [ebp - 0x424]
xor ecx, ecx
mov word [eax], cx
push ebx
mov edx, 0x7ffffffe
mov eax, 0x1000
mov ecx, esi
call fcn.00406ac0
push 0x5c
push esi
call fcn.0040914c
add esp, 8
test eax, eax
je 0x406eb9
xor edx, edx
push esi
push edx
mov word [eax], dx
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x41c], edi
cmp edi, 0xffffffff
jne 0x406f7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x410], eax
push esi
call fcn.0040917a
mov eax, dword [ebp - 0x41c]
add esp, 4
cmp eax, 0xffffffff
je 0x406f10
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x418]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test eax, eax
je 0x406f23
push eax
call esi
mov eax, dword [ebp - 0x430]
test eax, eax
je 0x406f30
push eax
call esi
mov eax, dword [ebp - 0x420]
test eax, eax
je 0x406f3d
push eax
call esi
mov esi, dword [ebp - 0x410]
test esi, esi
jne 0x407052
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.00408434
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x41c]
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpReadData]
mov edx, dword [ebp - 0x418]
lea ecx, [ebp - 0x414]
push ecx
push edx
mov dword [ebp - 0x414], 0
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x406ee9
mov eax, dword [ebp - 0x414]
cmp eax, dword [ebp - 0x428]
jbe 0x406fd2
push esi
call fcn.0040917a
mov eax, dword [ebp - 0x414]
inc eax
push eax
mov dword [ebp - 0x428], eax
call fcn.00408429
add esp, 8
mov esi, eax
mov ecx, dword [ebp - 0x414]
push ecx
push 0
push esi
call fcn.0040c8f0
mov eax, dword [ebp - 0x414]
mov ecx, dword [ebp - 0x418]
add esp, 0xc
lea edx, [ebp - 0x42c]
push edx
push eax
push esi
push ecx
call ebx
test eax, eax
je 0x40702b
cmp edi, 0xffffffff
je 0x40702b
mov eax, dword [ebp - 0x42c]
push 0
lea edx, [ebp - 0x434]
push edx
push eax
push esi
push edi
mov dword [ebp - 0x434], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40703d
cmp dword [ebp - 0x414], 0
ja 0x406f80
jmp 0x406ef5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x414], 0
jmp 0x406eef
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.00408434
mov esp, ebp
pop ebp
ret