Function at 0x455040
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 [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 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.004ad653
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.004b28e0
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 0x4550f3
movzx edi, word [ecx + eax]
cmp di, bx
je 0x4550f3
mov word [eax], di
add eax, 2
dec edx
jne 0x4550d5
jmp 0x4550f7
cmp edx, ebx
jne 0x4550fa
sub eax, 2
push 0x38
lea edx, [ebp - 0x46c]
xor ecx, ecx
push ebx
push edx
mov word [eax], cx
call fcn.004b28e0
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 0x455140
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x455140
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 0x4553b4
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 0x4553b4
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 0x4553b4
push 0x1fe
lea ecx, [ebp - 0x40a]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x40c], ax
call fcn.004b28e0
mov ebx, dword [ebp - 0x45c]
add esp, 0xc
cmp ebx, 0x7ffffffe
jbe 0x4551dc
xor edx, edx
mov word [ebp - 0x40c], dx
jmp 0x455222
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 0x455210
movzx ecx, word [edi + eax]
test cx, cx
je 0x455210
mov word [eax], cx
add eax, 2
dec edx
jne 0x4551f1
jmp 0x455214
test edx, edx
jne 0x455217
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 0x4553b4
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 0x501bb4
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov ebx, eax
mov dword [ebp - 0x424], ebx
test ebx, ebx
je 0x4553b4
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 0x4553b4
push 0
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x4553b4
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.004ae8f1
add esp, 4
cmp eax, 0xc8
jne 0x4553ba
mov edi, dword [ebp - 0x428]
test edi, edi
je 0x45543f
cmp word [edi], 0
je 0x45543f
lea eax, [ebp - 0x20c]
mov ecx, eax
mov edx, 0x104
sub edi, ecx
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x45532e
movzx ecx, word [edi + eax]
test cx, cx
je 0x45532e
mov word [eax], cx
add eax, 2
dec edx
jne 0x455310
jmp 0x455332
test edx, edx
jne 0x455335
sub eax, 2
xor edx, edx
push 0x501bbc
mov word [eax], dx
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.0040b0f0
mov ecx, dword [ebp - 0x428]
push bind
push ecx
mov eax, 0x1000
mov ecx, esi
call fcn.00454fe0
push 0x5c
push esi
call fcn.004afd3b
add esp, 8
test eax, eax
je 0x455384
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 0x455445
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x410], eax
push esi
call fcn.004aeb11
mov eax, dword [ebp - 0x418]
add esp, 4
cmp eax, 0xffffffff
je 0x4553db
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 0x4553ee
push eax
call esi
mov eax, dword [ebp - 0x430]
test eax, eax
je 0x4553fb
push eax
call esi
mov eax, dword [ebp - 0x41c]
test eax, eax
je 0x455408
push eax
call esi
mov esi, dword [ebp - 0x410]
test esi, esi
jne 0x45550e
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.004ae123
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 0x4553b4
mov edx, dword [ebp - 0x414]
cmp edx, dword [ebp - 0x42c]
jbe 0x455491
push esi
call fcn.004aeb11
mov eax, dword [ebp - 0x414]
inc eax
push eax
mov dword [ebp - 0x42c], eax
call fcn.004ad653
add esp, 8
mov esi, eax
mov eax, dword [ebp - 0x414]
push eax
push 0
push esi
call fcn.004b28e0
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 0x4554e5
cmp edi, 0xffffffff
je 0x4554e5
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 0x4554fd
cmp dword [ebp - 0x414], 0
jbe 0x4553c0
mov ebx, dword [ebp - 0x424]
jmp 0x45543f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x414], ebx
jmp 0x4553ba
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.004ae123
mov esp, ebp
pop ebp
ret