Function at 0x42b880
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 0x49e89d
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x4db064]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov ecx, dword [ebx + 0xc]
lea edi, [ebx + 0xc]
mov esi, dword [ebp + 0x14]
test ecx, ecx
je 0x42b8c7
push dword [ebx + 0x18]
mov eax, dword [ecx]
push dword [ebp + 0x10]
push 1
call dword [eax + 0xc]
mov ecx, edi
call fcn.0042f1a0
test al, al
je 0x42b8eb
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
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x42b91b
cmp eax, esi
jne 0x42b91b
mov ecx, dword [edi]
test ecx, ecx
je 0x42b905
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, [ebx + 0x1c]
push ecx
mov ecx, eax
mov dword [ebp - 0x30], eax
call fcn.0040dd10
add esp, 4
mov dword [ebp + 0x14], eax
test eax, eax
je 0x42ba2f
call fcn.00427020
cmp byte [eax + 0x1c], 0
je 0x42ba0a
call fcn.00427020
test byte [eax + 0x20], 8
je 0x42ba0a
call fcn.00427020
mov esi, eax
call fcn.00404130
test eax, eax
je 0x42c27a
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
mov dword [ebp - 4], 2
lea ecx, [ebp + 8]
push 0x19
push str.CreateSubFolders___failed
call fcn.004021c0
call fcn.00404130
mov ecx, eax
test ecx, ecx
je 0x42c27a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0xc], eax
mov byte [ebp - 4], 5
lea ecx, [ebp + 0xc]
push 0
push 0x4bc000
call fcn.004021c0
push ecx
lea eax, [ebp + 8]
push eax
push ecx
lea eax, [ebp + 0xc]
mov ecx, esi
push eax
call fcn.00427310
mov byte [ebp - 4], 2
or ebx, 0xffffffff
mov edx, dword [ebp + 0xc]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42b9eb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x42ba0a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp + 0x14]
mov ecx, edi
push 0
push esi
push 0
call fcn.0042f000
mov eax, esi
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 - 0x44], 0xc
cmp eax, esi
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
sbb eax, eax
mov dword [ebp - 0x74], 0
neg eax
mov dword [ebp - 0x70], 0
add eax, 2
mov dword [ebp - 0x6c], 0
mov dword [ebp + 0x14], eax
mov dword [ebp - 4], 0xa
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x5c], 0
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 - 4], 0xc
cmp byte [ebx + 0x80], 0
je 0x42baf8
test esi, esi
jne 0x42baf8
push 1
push 0x10000000
push 0x4bc234
lea ecx, [ebp - 0x74]
call fcn.00408980
push 1
push 0x10000000
push str.S_1_5_18
lea ecx, [ebp - 0x74]
call fcn.00408980
lea ecx, [ebp - 0x74]
call fcn.00408f00
mov dword [ebp - 0x40], eax
mov ecx, dword [ebx + 0x1c]
cmp dword [ecx - 4], 1
jle 0x42bb0f
push dword [ecx - 0xc]
lea ecx, [ebx + 0x1c]
call fcn.00402080
mov ecx, dword [ebx + 0x1c]
push 0
push 0x80
push dword [ebp + 0x14]
xor edx, edx
lea eax, [ebp - 0x44]
cmp dword [ebp - 0x40], 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 0x42bb4b
test esi, esi
je 0x42bb4b
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
call fcn.00408830
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x38], 0x4ba518
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], 0xd
cmp eax, 0xffffffff
jne 0x42bc77
call fcn.00427020
cmp byte [eax + 0x1c], 0
je 0x42bc44
call fcn.00427020
test byte [eax + 0x20], 8
je 0x42bc44
call fcn.00427020
mov esi, eax
call fcn.00404130
test eax, eax
je 0x42c27a
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
mov byte [ebp - 4], 0x10
lea ecx, [ebp + 8]
push 0x2b
push str.Creation_of_file_to_download_on_disk_failed
call fcn.004021c0
call fcn.00404130
mov ecx, eax
test ecx, ecx
je 0x42c27a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0xc], eax
mov byte [ebp - 4], 0x13
lea ecx, [ebp + 0xc]
push 0
push 0x4bc000
call fcn.004021c0
push ecx
lea eax, [ebp + 8]
push eax
push ecx
lea eax, [ebp + 0xc]
mov ecx, esi
push eax
call fcn.00427310
mov byte [ebp - 4], 0x10
or ebx, 0xffffffff
mov edx, dword [ebp + 0xc]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42bc28
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xd
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x42bc44
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, edi
call fcn.0042f1a0
test al, al
je 0x42bc5b
mov dword [ebp + 0x14], 0xe0000008
jmp 0x42c240
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, edi
push 0
push ebx
push 0
mov dword [ebp + 0x14], ebx
call fcn.0042f000
jmp 0x42c240
mov ecx, dword [edi]
test ecx, ecx
je 0x42bc8b
mov eax, dword [ecx]
test esi, esi
je 0x42bc86
push esi
jmp 0x42bc88
push 0
call dword [eax + 0x18]
mov dword [ebp - 0x28], 0
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x28]
push 0xc800
call fcn.00408360
mov esi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebx + 4]
push dword [eax + 0x68]
mov byte [eax + 0x38], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [ebp - 0x10]
push 0
push 0
mov byte [eax + 0x41], 0
mov dword [eax + 0x34], 8
lea eax, [ebp - 0x1c]
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
jne 0x42bd91
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 0x10]
mov dword [ebp + 0x14], eax
cmp eax, 0x3e5
jne 0x42bd7d
cmp byte [ebx + 0x38], 0
jne 0x42bd68
nop dword [eax + eax]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x42bd68
mov ecx, dword [edi]
test ecx, ecx
je 0x42bd48
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
call eax
test al, al
je 0x42bd48
nop
cmp byte [ebx + 0x38], 0
jne 0x42bd48
mov ecx, dword [edi]
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
call eax
test al, al
jne 0x42bd48
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [edi]
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
call eax
test al, al
jne 0x42bd20
mov ecx, edi
call fcn.0042f1a0
test al, al
jne 0x42c0b0
push 0xa
push dword [ebx + 0x68]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [ebx + 0x38], 0
je 0x42bd00
cmp dword [ebx + 0x30], 0
mov eax, dword [ebx + 0x2c]
mov dword [ebp + 0x14], eax
je 0x42bd7d
test eax, eax
jle 0x42bd9d
mov dword [ebp - 0x1c], eax
jmp 0x42bda0
mov dword [ebp - 0x18], 0
test eax, eax
jne 0x42be9a
mov eax, dword [ebp - 0x1c]
jmp 0x42bda7
mov ebx, dword [ebp - 0x10]
push dword [ebx + 0x68]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], 0
test eax, eax
je 0x42bf99
mov ebx, dword [ebx + 4]
cmp eax, 0xc800
mov ecx, 0xc800
cmova eax, ecx
mov dword [ebp + 0x14], eax
mov eax, dword [ebp - 0x10]
push dword [eax + 0x68]
mov byte [eax + 0x38], 0
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 dword [ebp + 0x14]
push esi
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x42bf0b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 0x10]
mov dword [ebp + 0x14], eax
cmp eax, 0x3e5
jne 0x42be96
cmp byte [ebx + 0x38], 0
jne 0x42be7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x42be7a
mov ecx, dword [edi]
test ecx, ecx
je 0x42be5a
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
call eax
test al, al
je 0x42be5a
cmp byte [ebx + 0x38], 0
jne 0x42be5a
mov ecx, dword [edi]
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
call eax
test al, al
jne 0x42be5a
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [edi]
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
call eax
test al, al
jne 0x42be32
mov ecx, edi
call fcn.0042f1a0
test al, al
jne 0x42c0b0
push 0xa
push dword [ebx + 0x68]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [ebx + 0x38], 0
je 0x42be14
cmp dword [ebx + 0x30], 0
mov eax, dword [ebx + 0x2c]
mov dword [ebp + 0x14], eax
je 0x42be96
test eax, eax
jle 0x42bf17
mov dword [ebp - 0x18], eax
jmp 0x42bf1a
test eax, eax
je 0x42bf17
mov ecx, eax
cmp eax, 0x2ee2
je 0x42bec4
mov dword [ebp + 0x14], eax
cmp ecx, 0x2efe
je 0x42bec4
mov dword [ebp + 0x14], eax
cmp ecx, 0x2eff
je 0x42bec4
mov dword [ebp + 0x14], eax
cmp ecx, 0x2f83
jne 0x42beef
mov ebx, dword [ebp - 0x10]
cmp byte [ebx + 0x88], 0
je 0x42beef
lea eax, [ebp + 0x10]
mov ecx, ebx
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x14]
push dword [ebp + 8]
call fcn.0042c990
mov dword [ebp + 0x14], eax
test eax, eax
je 0x42bca6
cmp eax, 0xe0000008
je 0x42c22c
push 0
push eax
push 0
mov ecx, edi
call fcn.0042f000
jmp 0x42c22c
mov ebx, dword [ebp - 0x10]
push dword [ebx + 0x68]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x42bf99
push 0
lea ecx, [ebp - 0x2c]
push ecx
push eax
push esi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42c0bc
mov ecx, dword [edi]
test ecx, ecx
je 0x42bf45
mov eax, dword [ecx]
push dword [ebp - 0x2c]
call dword [eax + 0x18]
mov ecx, dword [edi]
test ecx, ecx
je 0x42bf7e
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
call eax
test al, al
je 0x42bf7e
cmp byte [ebx + 0x38], 0
jne 0x42bf7e
mov ecx, dword [edi]
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
call eax
test al, al
jne 0x42bf7e
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [edi]
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
call eax
test al, al
jne 0x42bf56
mov ecx, edi
call fcn.0042f1a0
test al, al
je 0x42bca6
mov dword [ebp + 0x14], 0xe0000008
jmp 0x42c22c
call fcn.00427020
cmp byte [eax + 0x1c], 0
je 0x42c069
call fcn.00427020
test byte [eax + 0x20], 8
je 0x42c069
call fcn.00427020
mov dword [ebp + 0x14], eax
call fcn.00404130
test eax, eax
je 0x42c27a
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x24]
push 0x21
push str.AsyncDownloadThread_read_0_bytes.
call fcn.004021c0
call fcn.00404130
mov ecx, eax
test ecx, ecx
je 0x42c27a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 0x1e
lea ecx, [ebp - 0x20]
push 0
push 0x4bc000
call fcn.004021c0
push ecx
lea eax, [ebp - 0x24]
push eax
push ecx
mov ecx, dword [ebp + 0x14]
lea eax, [ebp - 0x20]
push eax
call fcn.00427310
mov byte [ebp - 4], 0x1b
or eax, 0xffffffff
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42c04a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x18
or eax, 0xffffffff
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42c069
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp + 0x10], 0
jbe 0x42c1b3
push 0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, dword [ebp + 0x10]
jae 0x42c1b3
cmp byte [ebx + 0x88], 0
jne 0x42bed0
push 0
push 0xe000000f
push 0
mov ecx, edi
call fcn.0042f000
mov dword [ebp + 0x14], 0xe000000f
jmp 0x42c22c
mov dword [ebp + 0x14], 0xe0000008
jmp 0x42c22c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [ebp + 0x14], ebx
call fcn.00427020
cmp byte [eax + 0x1c], 0
je 0x42c200
call fcn.00427020
test byte [eax + 0x20], 8
je 0x42c200
call fcn.00427020
mov dword [ebp - 0x20], eax
call fcn.00404130
test eax, eax
je 0x42c27a
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
mov byte [ebp - 4], 0x25
lea ecx, [ebp + 8]
push 0x26
push str.Failed_to_saved_in_file_the_bytes_read
call fcn.004021c0
push ebx
lea ecx, [ebp + 8]
call fcn.00426cb0
mov dword [ebp - 0x24], eax
call fcn.00404130
test eax, eax
je 0x42c27a
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp + 0xc], eax
mov byte [ebp - 4], 0x28
lea ecx, [ebp + 0xc]
push 0
push 0x4bc000
call fcn.004021c0
push ecx
push dword [ebp - 0x24]
lea eax, [ebp + 0xc]
push ecx
mov ecx, dword [ebp - 0x20]
push eax
call fcn.00427310
mov byte [ebp - 4], 0x25
or eax, 0xffffffff
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42c183
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x18
or eax, 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42c200
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push ebx
push 0
mov ecx, edi
call fcn.0042f000
jmp 0x42c22c
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x42c1c9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x34], eax
push dword [ebx + 0x18]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebx + 0x18]
push dword [ebx + 0x1c]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x42c216
push eax
push dword [ebx + 0x18]
mov ebx, dword [ebp - 0x30]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x42c20e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [ebp + 0x14], ebx
push 0
push ebx
push 0
mov ecx, edi
call fcn.0042f000
jmp 0x42c22c
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [edi]
test ecx, ecx
je 0x42c225
mov eax, dword [ecx]
push 0
push 1
call dword [eax + 0x14]
mov dword [ebp + 0x14], 0
mov byte [ebp - 4], 0xd
push esi
call fcn.00477749
add esp, 4
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x38], 0x4ba518
test eax, eax
je 0x42c263
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x34], 0
mov eax, dword [ebp + 0x14]
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
push 0x80004005
call fcn.004022e0
int3