Function at 0x4615f0
Capabilities:
Delete file
Download and write a file
Move file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x488146
mov eax, dword fs:[0]
push eax
mov eax, 0x201c
call fcn.004790e0
mov eax, dword [0x4ba1f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x30], 8
lea edi, [esi + 0x1c]
mov dword [ebp - 0x2028], edi
jb 0x461637
mov eax, dword [edi]
jmp 0x461639
mov eax, edi
push eax
lea ecx, [ebp - 0x201c]
call fcn.00402390
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x201c]
cmp dword [eax - 4], 1
jle 0x46166d
mov eax, dword [eax - 0xc]
push eax
lea ecx, [ebp - 0x201c]
call fcn.004020c0
mov eax, dword [ebp - 0x201c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
mov eax, dword [ebp - 0x201c]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.00467b95
add esp, 8
test eax, eax
js 0x461981
mov ecx, dword [ebp - 0x201c]
cmp eax, dword [ecx - 8]
jg 0x461981
mov dword [ecx - 0xc], eax
mov edx, dword [ebp - 0x201c]
xor ecx, ecx
mov word [edx + eax*2], cx
lea eax, [ebp - 0x201c]
push eax
lea ecx, [ebp - 0x2018]
push ecx
mov ebx, str..bak
call fcn.00406d50
add esp, 8
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x2018]
cmp dword [ecx - 4], 1
jle 0x4616ed
mov edx, dword [ecx - 0xc]
push edx
lea ecx, [ebp - 0x2018]
call fcn.004020c0
mov ecx, dword [ebp - 0x2018]
cmp dword [edi + 0x14], 8
jb 0x4616f7
mov eax, dword [edi]
jmp 0x4616f9
mov eax, edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov eax, dword [ebp - 0x2018]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.00467b95
xor ebx, ebx
add esp, 8
cmp eax, ebx
jl 0x461981
mov ecx, dword [ebp - 0x2018]
cmp eax, dword [ecx - 8]
jg 0x461981
mov dword [ecx - 0xc], eax
mov edx, dword [ebp - 0x2018]
xor ecx, ecx
mov word [edx + eax*2], cx
cmp dword [edi + 0x14], 8
jb 0x461746
mov ecx, dword [edi]
jmp 0x461748
mov ecx, edi
call fcn.00461190
mov dword [ebp - 0x2024], eax
mov byte [ebp - 0x2011], 1
cmp eax, 0xffffffff
jne 0x4617cb
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x2018]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x461784
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x201c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4617ad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004657f5
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x50], ebx
je 0x4617e0
mov edi, dword [esi + 0x3c]
call fcn.00461b90
mov ecx, dword [esi + 0x50]
mov dword [ecx], eax
mov dword [ecx + 4], edx
push 0x1fff
lea ecx, [ebp - 0x200f]
push ebx
push ecx
mov byte [ebp - 0x2010], bl
call fcn.004690e0
mov ecx, dword [esi + 0x3c]
mov edi, dword [sym.imp.WININET.dll_InternetReadFile]
add esp, 0xc
lea edx, [ebp - 0x2020]
push edx
push 0x2000
lea eax, [ebp - 0x2010]
push eax
push ecx
call edi
cmp eax, ebx
je 0x46189b
mov edi, edi
mov ecx, dword [ebp - 0x2020]
cmp ecx, ebx
je 0x461897
mov eax, dword [esi + 0x54]
cmp eax, ebx
je 0x46183c
add dword [eax], ecx
adc dword [eax + 4], ebx
mov ecx, dword [ebp - 0x2020]
push ebx
lea edx, [ebp - 0x2020]
push edx
push ecx
mov ecx, dword [ebp - 0x2024]
lea eax, [ebp - 0x2010]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4618a4
push 0x1fff
lea edx, [ebp - 0x200f]
push ebx
push edx
mov byte [ebp - 0x2010], bl
call fcn.004690e0
mov edx, dword [esi + 0x3c]
add esp, 0xc
lea eax, [ebp - 0x2020]
push eax
push 0x2000
lea ecx, [ebp - 0x2010]
push ecx
push edx
call edi
cmp eax, ebx
jne 0x461820
jmp 0x46189b
cmp eax, ebx
jne 0x4618aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x4c], eax
mov byte [ebp - 0x2011], bl
mov eax, dword [ebp - 0x2024]
cmp eax, ebx
je 0x4618bb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x2011], bl
je 0x461923
mov eax, esi
call fcn.00461990
test eax, eax
je 0x461923
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x2018]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4618f3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x201c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46191c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
jmp 0x4617af
cmp dword [esi + 0x4c], 0xffffffff
jne 0x46192f
mov ecx, dword [esi + 0x48]
mov dword [esi + 0x4c], ecx
mov esi, dword [ebp - 0x2028]
mov edi, 8
cmp dword [esi + 0x14], edi
jb 0x461943
mov eax, dword [esi]
jmp 0x461945
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esi + 0x14], edi
jb 0x461953
mov esi, dword [esi]
mov eax, dword [ebp - 0x2018]
cmp dword [eax - 4], 1
jle 0x461974
mov edx, dword [eax - 0xc]
push edx
lea ecx, [ebp - 0x2018]
call fcn.004020c0
mov eax, dword [ebp - 0x2018]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x46175f
push 0x80070057
call fcn.00402240
int3