Function at 0x4549c0
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 [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 dword [ebp - 0x428], eax
mov dword [ebp - 0x420], ecx
mov dword [ebp - 0x410], ebx
mov dword [ebp - 0x414], ebx
mov dword [ebp - 0x434], ebx
call fcn.004819f2
push 0x206
mov esi, eax
lea eax, [ebp - 0x20a]
xor edx, edx
push ebx
push eax
mov dword [ebp - 0x42c], 0x2000
mov word [ebp - 0x20c], dx
call fcn.00487e90
mov ecx, dword [ebp + 8]
add esp, 0x10
mov dword [ebp - 0x41c], ebx
mov dword [ebp - 0x430], ebx
mov dword [ebp - 0x424], ebx
mov dword [ebp - 0x418], 0xffffffff
mov edx, 0x1000
mov eax, esi
sub ecx, esi
lea edi, [edx + 0x7fffeffe]
test edi, edi
je 0x454a73
movzx edi, word [ecx + eax]
cmp di, bx
je 0x454a73
mov word [eax], di
add eax, 2
dec edx
jne 0x454a55
jmp 0x454a77
cmp edx, ebx
jne 0x454a7a
sub eax, 2
push 0x38
lea edx, [ebp - 0x46c]
xor ecx, ecx
push ebx
push edx
mov word [eax], cx
call fcn.00487e90
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]
jmp 0x454ac0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x454ac0
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 0x454d34
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 - 0x41c], edi
cmp edi, ebx
je 0x454d34
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 edi
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test eax, eax
je 0x454d34
push 0x1fe
lea ecx, [ebp - 0x40a]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x40c], ax
call fcn.00487e90
mov ebx, dword [ebp - 0x45c]
add esp, 0xc
cmp ebx, 0x7ffffffe
jbe 0x454b5c
xor edx, edx
mov word [ebp - 0x40c], dx
jmp 0x454ba2
mov edi, dword [ebp - 0x460]
lea eax, [ebp - 0x40c]
mov ecx, eax
mov edx, 0xff
sub edi, ecx
lea ecx, [ebx + edx - 0xff]
test ecx, ecx
je 0x454b90
movzx ecx, word [edi + eax]
test cx, cx
je 0x454b90
mov word [eax], cx
add eax, 2
dec edx
jne 0x454b71
jmp 0x454b94
test edx, edx
jne 0x454b97
sub eax, 2
mov edi, dword [ebp - 0x41c]
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 0x454d34
mov edx, dword [ebp - 0x420]
xor eax, eax
cmp dword [ebp - 0x464], 2
setne al
dec eax
and eax, 0x800000
push eax
mov eax, dword [ebp - 0x444]
push 0
push edx
push 0
push eax
push 0x4ca1c4
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov ebx, eax
mov dword [ebp - 0x424], ebx
test ebx, ebx
je 0x454d34
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 0x454d34
push 0
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x454d34
push 0
lea ecx, [ebp - 0x414]
push ecx
push esi
push 0
push 0x13
push ebx
mov dword [ebp - 0x414], 0x1000
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
push esi
call fcn.00482c31
add esp, 4
cmp eax, 0xc8
jne 0x454d3a
mov edi, dword [ebp - 0x428]
test edi, edi
je 0x454dbf
cmp word [edi], 0
je 0x454dbf
lea eax, [ebp - 0x20c]
mov ecx, eax
mov edx, 0x104
sub edi, ecx
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x454cae
movzx ecx, word [edi + eax]
test cx, cx
je 0x454cae
mov word [eax], cx
add eax, 2
dec edx
jne 0x454c90
jmp 0x454cb2
test edx, edx
jne 0x454cb5
sub eax, 2
xor edx, edx
push 0x4ca1cc
mov word [eax], dx
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.0040aad0
mov ecx, dword [ebp - 0x428]
push SysReAllocString
push ecx
mov eax, 0x1000
mov ecx, esi
call fcn.00454960
push 0x5c
push esi
call fcn.00485ac5
add esp, 8
test eax, eax
je 0x454d04
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 - 0x418], edi
cmp edi, 0xffffffff
jne 0x454dc5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x410], eax
push esi
call fcn.00482e51
mov eax, dword [ebp - 0x418]
add esp, 4
cmp eax, 0xffffffff
je 0x454d5b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x424]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test eax, eax
je 0x454d6e
push eax
call esi
mov eax, dword [ebp - 0x430]
test eax, eax
je 0x454d7b
push eax
call esi
mov eax, dword [ebp - 0x41c]
test eax, eax
je 0x454d88
push eax
call esi
mov esi, dword [ebp - 0x410]
test esi, esi
jne 0x454e8e
mov edx, dword [ebp - 0x428]
push 1
push edx
lea eax, [ebp - 0x20c]
push eax
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.00482469
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x418]
lea ecx, [ebp - 0x414]
push ecx
push ebx
mov dword [ebp - 0x414], 0
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x454d34
mov edx, dword [ebp - 0x414]
cmp edx, dword [ebp - 0x42c]
jbe 0x454e11
push esi
call fcn.00482e51
mov eax, dword [ebp - 0x414]
inc eax
push eax
mov dword [ebp - 0x42c], eax
call fcn.004819f2
add esp, 8
mov esi, eax
mov eax, dword [ebp - 0x414]
push eax
push 0
push esi
call fcn.00487e90
mov edx, dword [ebp - 0x414]
add esp, 0xc
lea ecx, [ebp - 0x434]
push ecx
push edx
push esi
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x454e65
cmp edi, 0xffffffff
je 0x454e65
mov ecx, dword [ebp - 0x434]
xor ebx, ebx
push ebx
lea eax, [ebp - 0x420]
push eax
push ecx
push esi
push edi
mov dword [ebp - 0x420], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x454e7d
cmp dword [ebp - 0x414], 0
jbe 0x454d40
mov ebx, dword [ebp - 0x424]
jmp 0x454dbf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x414], ebx
jmp 0x454d3a
lea ecx, [ebp - 0x20c]
push ecx
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.00482469
mov esp, ebp
pop ebp
ret