Function at 0x4c0590
Capabilities:
Copy file
Delete file
Download and write a file
Get file size
Move file
Query remote server for available data
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 0x56424d
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push esi
push edi
mov eax, dword [0x5d6024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov ecx, dword [edi + 0xc]
lea ebx, [edi + 0xc]
mov esi, dword [ebp + 0x14]
mov dword [ebp + 0x14], ebx
test ecx, ecx
je 0x4c05da
push dword [edi + 0x18]
mov eax, dword [ecx]
push dword [ebp + 0x10]
push 1
call dword [eax + 0xc]
cmp byte [ebx + 5], 0
jne 0x4c0bff
mov ecx, dword [ebx]
test ecx, ecx
je 0x4c05f9
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
call eax
test al, al
jne 0x4c0bff
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4c0629
cmp eax, esi
jne 0x4c0629
mov ecx, dword [ebx]
test ecx, ecx
je 0x4c0613
mov eax, dword [ecx]
push 0
push 1
call dword [eax + 0x14]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea eax, [edi + 0x1c]
xor dl, dl
push 0
mov ecx, eax
mov dword [ebp - 0x2c], eax
call fcn.004939a0
add esp, 4
mov dword [ebp - 0x24], eax
test eax, eax
je 0x4c066f
mov ecx, dword [ebx]
test ecx, ecx
je 0x4c0c04
mov edx, dword [ecx]
push 0
push eax
push 0
call dword [edx + 0x24]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
xor eax, eax
mov dword [ebp - 0x40], 0xc
cmp eax, esi
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
sbb eax, eax
mov dword [ebp - 0x70], 0
neg eax
mov dword [ebp - 0x6c], 0
add eax, 2
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov byte [ebp - 4], 1
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 4], 2
cmp byte [edi + 0x80], 0
je 0x4c0730
test esi, esi
jne 0x4c0730
push 1
push ecx
push 0x59655c
lea ecx, [ebp - 0x70]
call fcn.004d1500
push 1
push ecx
push str.S_1_5_18
lea ecx, [ebp - 0x70]
call fcn.004d1500
lea ecx, [ebp - 0x70]
call fcn.004d1a80
mov dword [ebp - 0x3c], eax
mov ecx, dword [edi + 0x1c]
cmp dword [ecx - 4], 1
jle 0x4c0747
push dword [ecx - 0xc]
lea ecx, [edi + 0x1c]
call fcn.00408c70
mov ecx, dword [edi + 0x1c]
push 0
push 0x80
push dword [ebp - 0x24]
xor edx, edx
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x3c], edx
cmove eax, edx
push eax
push edx
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
je 0x4c0783
test esi, esi
je 0x4c0783
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.004d13b0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x34], 0x583588
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], 3
cmp eax, 0xffffffff
jne 0x4c07f0
cmp byte [ebx + 5], 0
jne 0x4c07e6
mov ecx, dword [ebx]
test ecx, ecx
je 0x4c07c2
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
call eax
test al, al
jne 0x4c07e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
test ecx, ecx
je 0x4c0bc6
mov eax, dword [ecx]
push 0
push ebx
push 0
call dword [eax + 0x24]
jmp 0x4c0bc6
mov ebx, 0xe0000008
jmp 0x4c0bc6
mov ecx, dword [ebx]
test ecx, ecx
je 0x4c0804
mov eax, dword [ecx]
test esi, esi
je 0x4c07ff
push esi
jmp 0x4c0801
push 0
call dword [eax + 0x18]
mov dword [ebp - 0x24], 0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x24]
push 0xc800
call fcn.004b1730
mov esi, dword [ebp - 0x24]
lea eax, [edi + 0x38]
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x10]
mov edi, dword [edi + 4]
mov byte [eax], 0
push dword [ebx + 0x68]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0
push 0
lea eax, [ebp - 0x1c]
mov byte [ebx + 0x41], 0
push eax
push edi
mov dword [ebx + 0x34], 8
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
jne 0x4c08eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0x3e5
jne 0x4c08d4
mov eax, dword [ebp - 0x20]
cmp byte [eax], 0
jne 0x4c08bf
mov ebx, dword [ebp + 0x14]
mov edi, dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x4c08bf
lea eax, [edi + 0x38]
mov ecx, ebx
push eax
call fcn.004d1360
cmp byte [ebx + 5], 0
jne 0x4c0ae2
mov ecx, dword [ebx]
test ecx, ecx
je 0x4c08ae
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
call eax
test al, al
jne 0x4c0ae2
push 0xa
push dword [edi + 0x68]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [edi + 0x38], 0
je 0x4c0877
mov edi, dword [ebp - 0x10]
cmp dword [edi + 0x30], 0
mov ebx, dword [edi + 0x2c]
je 0x4c08d7
test ebx, ebx
jle 0x4c08f6
mov dword [ebp - 0x1c], ebx
jmp 0x4c08f9
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0x18], 0
test ebx, ebx
jne 0x4c09d3
mov ebx, dword [ebp - 0x1c]
jmp 0x4c0900
mov edi, ebx
push dword [edi + 0x68]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], 0
test ebx, ebx
je 0x4c0a9a
mov edi, dword [edi + 4]
cmp ebx, 0xc800
mov eax, 0xc800
cmova ebx, eax
mov eax, dword [ebp - 0x20]
mov byte [eax], 0
mov eax, dword [ebp - 0x10]
push dword [eax + 0x68]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x41], 0
mov dword [eax + 0x34], 3
lea eax, [ebp - 0x18]
push eax
push ebx
push esi
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x4c0a2c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0x3e5
jne 0x4c09cc
mov edi, dword [ebp - 0x20]
cmp byte [edi], 0
jne 0x4c09b7
mov ebx, dword [ebp + 0x14]
nop dword [eax]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x4c09b7
push edi
mov ecx, ebx
call fcn.004d1360
cmp byte [ebx + 5], 0
jne 0x4c0ae2
mov ecx, dword [ebx]
test ecx, ecx
je 0x4c09a4
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
call eax
test al, al
jne 0x4c0ae2
mov eax, dword [ebp - 0x10]
push 0xa
push dword [eax + 0x68]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [edi], 0
je 0x4c0970
mov edi, dword [ebp - 0x10]
cmp dword [edi + 0x30], 0
mov ebx, dword [edi + 0x2c]
je 0x4c09cf
test ebx, ebx
jle 0x4c0a38
mov dword [ebp - 0x18], ebx
jmp 0x4c0a3b
mov edi, dword [ebp - 0x10]
test ebx, ebx
je 0x4c0a38
mov eax, ebx
cmp ebx, 0x2ee2
je 0x4c09f6
cmp eax, 0x2efe
je 0x4c09f6
cmp eax, 0x2eff
je 0x4c09f6
cmp eax, 0x2f83
jne 0x4c0af6
mov edi, dword [ebp - 0x10]
cmp byte [edi + 0x88], 0
je 0x4c0af6
lea eax, [ebp + 0x10]
mov ecx, edi
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x14]
push dword [ebp + 8]
call fcn.004c1290
mov ebx, eax
test ebx, ebx
jne 0x4c0af6
lea eax, [edi + 0x38]
jmp 0x4c0825
mov edi, dword [ebp - 0x10]
push dword [edi + 0x68]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4c0a9a
push 0
lea eax, [ebp - 0x28]
push eax
push ebx
push esi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4c0b7d
mov ebx, dword [ebp + 0x14]
mov ecx, dword [ebx]
test ecx, ecx
je 0x4c0a69
mov eax, dword [ecx]
push dword [ebp - 0x28]
call dword [eax + 0x18]
lea eax, [edi + 0x38]
mov ecx, ebx
push eax
call fcn.004d1360
cmp byte [ebx + 5], 0
jne 0x4c0aec
mov ecx, dword [ebx]
lea eax, [edi + 0x38]
test ecx, ecx
je 0x4c0825
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
call eax
test al, al
jne 0x4c0aec
lea eax, [edi + 0x38]
jmp 0x4c0825
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp - 0x14]
jbe 0x4c0b3c
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, dword [ebp + 0x10]
jae 0x4c0b3c
cmp byte [edi + 0x88], 0
je 0x4c0b1e
lea eax, [ebp + 0x10]
mov ecx, edi
push eax
push dword [ebp + 0xc]
push ebx
push dword [ebp + 8]
call fcn.004c1290
mov ebx, eax
test ebx, ebx
jne 0x4c0af6
lea eax, [edi + 0x38]
jmp 0x4c0825
mov ebx, 0xe0000008
jmp 0x4c0bb2
mov ebx, 0xe0000008
jmp 0x4c0bb2
cmp ebx, 0xe0000008
je 0x4c0bb2
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
test ecx, ecx
je 0x4c0bb2
mov eax, dword [ecx]
push 0
push ebx
push 0
call dword [eax + 0x24]
jmp 0x4c0bb2
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
test ecx, ecx
je 0x4c0b35
mov eax, dword [ecx]
push 0
push 0xe000000f
push 0
call dword [eax + 0x24]
mov ebx, 0xe000000f
jmp 0x4c0bb2
test ebx, ebx
je 0x4c0b4f
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x30], eax
push dword [edi + 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call ebx
push dword [edi + 0x18]
push dword [edi + 0x1c]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x4c0b9e
push eax
push dword [edi + 0x18]
mov edi, dword [ebp - 0x2c]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4c0b9a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
test ecx, ecx
je 0x4c0bb2
mov eax, dword [ecx]
push 0
push ebx
push 0
call dword [eax + 0x24]
jmp 0x4c0bb2
push dword [edi]
call ebx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
test ecx, ecx
je 0x4c0bb0
mov eax, dword [ecx]
push 0
push 1
call dword [eax + 0x14]
xor ebx, ebx
mov byte [ebp - 4], 3
push esi
call fcn.00522af9
add esp, 4
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x34], 0x583588
test eax, eax
je 0x4c0be9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x30], 0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, 0xe0000008
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10