Function at 0x423df0
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 0x48d510
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x4c4074]
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]
test ecx, ecx
je 0x423e34
push dword [ebx + 0x18]
mov eax, dword [ecx]
push dword [ebp + 0x10]
push 1
call dword [eax + 0xc]
mov ecx, edi
call fcn.00427d80
test al, al
je 0x423e58
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]
mov esi, dword [ebp + 0x14]
test eax, eax
je 0x423e8b
cmp eax, esi
jne 0x423e8b
mov ecx, dword [edi]
test ecx, ecx
je 0x423e75
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
call fcn.00420c00
mov al, byte [eax + 0x1c]
test al, al
je 0x423f62
call fcn.00420c00
test byte [eax + 0x20], 8
je 0x423f62
call fcn.00420c00
mov dword [ebp - 0x28], eax
call fcn.00403d50
mov ecx, eax
test ecx, ecx
je 0x424876
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x18]
push 0x29
push str.Before_FileSystemUtil::CreateSubFolders__
call fcn.004023a0
call fcn.00403d50
mov ecx, eax
test ecx, ecx
je 0x424880
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x14], eax
mov byte [ebp - 4], 5
lea ecx, [ebp + 0x14]
push 0
push 0x4a85e8
call fcn.004023a0
push ecx
lea eax, [ebp - 0x18]
push eax
push ecx
mov ecx, dword [ebp - 0x28]
lea eax, [ebp + 0x14]
push eax
call fcn.00420d60
mov byte [ebp - 4], 2
or eax, 0xffffffff
mov edx, dword [ebp + 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x423f40
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x423f62
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebx + 0x1c]
push ecx
mov ecx, eax
mov dword [ebp - 0x30], eax
call fcn.0040e570
add esp, 4
mov dword [ebp + 0x14], eax
test eax, eax
je 0x424076
call fcn.00420c00
cmp byte [eax + 0x1c], 0
je 0x424051
call fcn.00420c00
test byte [eax + 0x20], 8
je 0x424051
call fcn.00420c00
mov esi, eax
call fcn.00403d50
mov ecx, eax
test ecx, ecx
je 0x42488a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0xc], eax
mov dword [ebp - 4], 0xc
lea ecx, [ebp + 0xc]
push 0x19
push str.CreateSubFolders___failed
call fcn.004023a0
call fcn.00403d50
mov ecx, eax
test ecx, ecx
je 0x424894
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x10], eax
mov byte [ebp - 4], 0xf
lea ecx, [ebp + 0x10]
push 0
push 0x4a85e8
call fcn.004023a0
push ecx
lea eax, [ebp + 0xc]
push eax
push ecx
lea eax, [ebp + 0x10]
mov ecx, esi
push eax
call fcn.00420d60
mov byte [ebp - 4], 0xc
or ebx, 0xffffffff
mov edx, dword [ebp + 0x10]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x424032
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x424051
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.00427be0
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
push esi
mov ecx, ebx
call fcn.00424bd0
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x38], 0x4a85d0
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], 0x14
cmp eax, 0xffffffff
jne 0x424197
call fcn.00420c00
mov al, byte [eax + 0x1c]
test al, al
je 0x424169
call fcn.00420c00
test byte [eax + 0x20], 8
je 0x424169
call fcn.00420c00
mov esi, eax
call fcn.00403d50
mov ecx, eax
test ecx, ecx
je 0x42489e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0xc], eax
mov byte [ebp - 4], 0x17
lea ecx, [ebp + 0xc]
push 0x2b
push str.Creation_of_file_to_download_on_disk_failed
call fcn.004023a0
call fcn.00403d50
mov ecx, eax
test ecx, ecx
je 0x4248a8
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x10], eax
mov byte [ebp - 4], 0x1a
lea ecx, [ebp + 0x10]
push 0
push 0x4a85e8
call fcn.004023a0
push ecx
lea eax, [ebp + 0xc]
push eax
push ecx
lea eax, [ebp + 0x10]
mov ecx, esi
push eax
call fcn.00420d60
mov byte [ebp - 4], 0x17
or ebx, 0xffffffff
mov edx, dword [ebp + 0x10]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42414d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x14
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x424169
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, edi
call fcn.00427d80
test al, al
je 0x42417e
mov ebx, 0xe0000008
jmp 0x424680
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
mov ebx, eax
mov ecx, edi
push ebx
push 0
call fcn.00427be0
jmp 0x424680
mov ecx, dword [edi]
test esi, esi
je 0x4241a4
test ecx, ecx
je 0x4241af
push esi
jmp 0x4241aa
test ecx, ecx
je 0x4241af
push 0
mov eax, dword [ecx]
call dword [eax + 0x18]
call fcn.00420c00
mov al, byte [eax + 0x1c]
test al, al
je 0x42427f
call fcn.00420c00
test byte [eax + 0x20], 8
je 0x42427f
call fcn.00420c00
mov esi, eax
call fcn.00403d50
mov ecx, eax
test ecx, ecx
je 0x4248b2
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0x21
lea ecx, [ebp - 0x18]
push 0x16
push str.Before_reading_in_loop
call fcn.004023a0
call fcn.00403d50
mov ecx, eax
test ecx, ecx
je 0x4248bc
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x14], eax
mov byte [ebp - 4], 0x24
lea ecx, [ebp + 0x14]
push 0
push 0x4a85e8
call fcn.004023a0
push ecx
lea eax, [ebp - 0x18]
push eax
push ecx
lea eax, [ebp + 0x14]
mov ecx, esi
push eax
call fcn.00420d60
mov byte [ebp - 4], 0x21
or esi, 0xffffffff
mov edx, dword [ebp + 0x14]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x424261
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x14
mov eax, esi
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42427f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0x24], 0
mov byte [ebp - 4], 0x29
lea ecx, [ebp - 0x24]
push 0xc800
call fcn.00408010
mov esi, dword [ebp - 0x24]
nop word [eax + eax]
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 - 0x28]
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
jne 0x42437d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 0x10]
mov dword [ebp + 0x14], eax
cmp eax, 0x3e5
jne 0x42438e
cmp byte [ebx + 0x38], 0
jne 0x424357
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x424357
mov ecx, dword [edi]
test ecx, ecx
je 0x42433b
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
call eax
test al, al
je 0x42433b
cmp byte [ebx + 0x38], 0
jne 0x42433b
mov ecx, dword [edi]
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
call eax
test al, al
jne 0x42433b
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 0x424313
mov ecx, edi
call fcn.00427d80
test al, al
jne 0x424369
push 0xa
push dword [ebx + 0x68]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [ebx + 0x38], 0
je 0x4242f5
cmp dword [ebx + 0x30], 0
mov eax, dword [ebx + 0x2c]
je 0x42438b
test eax, eax
jle 0x424389
mov dword [ebp - 0x28], eax
jmp 0x424389
mov eax, 0xe0000008
mov dword [ebp - 0x18], 0
mov dword [ebp + 0x14], eax
jmp 0x4246bc
mov ebx, dword [ebp - 0x10]
push dword [ebx + 0x68]
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor eax, eax
mov dword [ebp + 0x14], eax
mov dword [ebp - 0x18], 0
test eax, eax
jne 0x4246b9
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x424538
cmp eax, 0xc800
mov ecx, 0xc800
cmova eax, ecx
mov dword [ebp + 0x14], eax
mov eax, dword [ebp - 0x10]
push dword [eax + 0x68]
mov ebx, dword [eax + 4]
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 0x424493
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 0x10]
mov dword [ebp + 0x14], eax
cmp eax, 0x3e5
jne 0x4244a4
cmp byte [ebx + 0x38], 0
jne 0x424474
nop dword [eax]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x424474
mov ecx, dword [edi]
test ecx, ecx
je 0x424458
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
call eax
test al, al
je 0x424458
nop
cmp byte [ebx + 0x38], 0
jne 0x424458
mov ecx, dword [edi]
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
call eax
test al, al
jne 0x424458
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 0x424430
mov ecx, edi
call fcn.00427d80
test al, al
jne 0x424486
push 0xa
push dword [ebx + 0x68]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [ebx + 0x38], 0
je 0x424410
cmp dword [ebx + 0x30], 0
mov eax, dword [ebx + 0x2c]
je 0x4244a1
test eax, eax
jle 0x42449f
mov dword [ebp - 0x18], eax
jmp 0x42449f
mov eax, 0xe0000008
mov dword [ebp + 0x14], eax
jmp 0x4246bc
mov ebx, dword [ebp - 0x10]
push dword [ebx + 0x68]
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor eax, eax
mov dword [ebp + 0x14], eax
test eax, eax
jne 0x4246b9
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x424538
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 0x4246ee
mov ecx, dword [edi]
test ecx, ecx
je 0x4244de
mov eax, dword [ecx]
push dword [ebp - 0x2c]
call dword [eax + 0x18]
mov ecx, dword [edi]
test ecx, ecx
je 0x42451c
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
call eax
mov ebx, dword [ebp - 0x10]
test al, al
je 0x42451f
cmp byte [ebx + 0x38], 0
jne 0x42451f
mov ecx, dword [edi]
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
call eax
test al, al
jne 0x42451f
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 0x4244f2
jmp 0x42451f
mov ebx, dword [ebp - 0x10]
mov ecx, edi
call fcn.00427d80
test al, al
je 0x4242a0
mov ebx, 0xe0000008
jmp 0x42466c
call fcn.00420c00
mov al, byte [eax + 0x1c]
test al, al
je 0x424609
call fcn.00420c00
test byte [eax + 0x20], 8
je 0x424609
call fcn.00420c00
mov dword [ebp + 0x14], eax
call fcn.00403d50
test eax, eax
je 0x424876
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 0x2c
lea ecx, [ebp - 0x20]
push 0x21
push str.AsyncDownloadThread_read_0_bytes.
call fcn.004023a0
call fcn.00403d50
mov ecx, eax
test ecx, ecx
je 0x424876
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 0x2f
lea ecx, [ebp - 0x1c]
push 0
push 0x4a85e8
call fcn.004023a0
push ecx
lea eax, [ebp - 0x20]
push eax
push ecx
mov ecx, dword [ebp + 0x14]
lea eax, [ebp - 0x1c]
push eax
call fcn.00420d60
mov byte [ebp - 4], 0x2c
or eax, 0xffffffff
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4245ea
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x29
or eax, 0xffffffff
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x424609
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp + 0x10], 0
jbe 0x4247fd
push 0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, dword [ebp + 0x10]
jae 0x4247fd
mov ebx, dword [ebp - 0x10]
cmp byte [ebx + 0x88], 0
je 0x4247e3
lea eax, [ebp + 0x10]
mov ecx, ebx
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x14]
push dword [ebp + 8]
call fcn.00425310
mov dword [ebp + 0x14], eax
test eax, eax
je 0x4242a0
cmp eax, 0xe0000008
je 0x424669
push 0
push eax
push 0
mov ecx, edi
call fcn.00427be0
mov ebx, dword [ebp + 0x14]
mov byte [ebp - 4], 0x14
push esi
call fcn.0046eb32
add esp, 4
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x38], 0x4a85d0
test eax, eax
je 0x4246a3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x34], 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 ebx, dword [ebp - 0x10]
cmp eax, 0x2ee2
je 0x4246dc
cmp eax, 0x2efe
je 0x4246dc
cmp eax, 0x2eff
je 0x4246dc
cmp eax, 0x2f83
jne 0x424656
cmp byte [ebx + 0x88], 0
je 0x424656
jmp 0x424637
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.00420c00
mov al, byte [eax + 0x1c]
test al, al
je 0x4247d2
call fcn.00420c00
test byte [eax + 0x20], 8
je 0x4247d2
call fcn.00420c00
mov dword [ebp + 0x14], eax
call fcn.00403d50
mov ecx, eax
test ecx, ecx
je 0x4248c6
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0xc], eax
mov byte [ebp - 4], 0x36
lea ecx, [ebp + 0xc]
push 0x26
push str.Failed_to_saved_in_file_the_bytes_read
call fcn.004023a0
push ebx
lea ecx, [ebp + 0xc]
call fcn.004208a0
mov dword [ebp + 8], eax
call fcn.00403d50
mov ecx, eax
test ecx, ecx
je 0x4248d0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x10], eax
mov byte [ebp - 4], 0x39
lea ecx, [ebp + 0x10]
push 0
push 0x4a85e8
call fcn.004023a0
push ecx
push dword [ebp + 8]
lea eax, [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0x14]
push eax
call fcn.00420d60
mov byte [ebp - 4], 0x36
or eax, 0xffffffff
mov edx, dword [ebp + 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4247b3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x29
or eax, 0xffffffff
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4247d2
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.00427be0
jmp 0x42466c
push 0
push 0xe000000f
push 0
mov ecx, edi
call fcn.00427be0
mov ebx, 0xe000000f
jmp 0x42466c
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x424813
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 0x424860
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 0x424858
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
mov ebx, eax
mov ecx, edi
push ebx
push 0
call fcn.00427be0
jmp 0x42466c
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [edi]
test ecx, ecx
je 0x42486f
mov eax, dword [ecx]
push 0
push 1
call dword [eax + 0x14]
xor ebx, ebx
jmp 0x42466c
push 0x80004005
call fcn.004024c0
push 0x80004005
call fcn.004024c0
push 0x80004005
call fcn.004024c0
push 0x80004005
call fcn.004024c0
push 0x80004005
call fcn.004024c0
push 0x80004005
call fcn.004024c0
push 0x80004005
call fcn.004024c0
push 0x80004005
call fcn.004024c0
push 0x80004005
call fcn.004024c0
push 0x80004005
call fcn.004024c0
int3