Function at 0x4367a0
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 0x50628d
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push esi
push edi
mov eax, dword [0x569080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov eax, dword [edi + 0xc]
lea ebx, [edi + 0xc]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x34], eax
test eax, eax
je 0x4367f7
push dword [edi + 0x18]
mov eax, dword [eax]
push dword [ebp + 0x10]
push 1
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x525578]
mov ecx, dword [ebp - 0x34]
call esi
mov ecx, ebx
call fcn.0043acb0
test al, al
je 0x43681b
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 0x43685a
cmp eax, esi
jne 0x43685a
mov edi, dword [ebx]
test edi, edi
je 0x436844
mov eax, dword [edi]
push 0
push 1
mov esi, dword [eax + 0x14]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
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
push ecx
lea ecx, [edi + 0x1c]
call fcn.0040fa40
add esp, 4
mov dword [ebp - 0x30], eax
test eax, eax
je 0x43699e
call fcn.0042b830
cmp byte [eax + 0x1c], 0
je 0x436979
call fcn.0042b830
test byte [eax + 0x20], 8
je 0x436979
call fcn.0042b830
mov dword [ebp - 0x34], eax
call fcn.004047f0
mov edi, eax
test edi, edi
je 0x437206
mov edx, dword [edi]
mov esi, dword [edx + 0xc]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x20]
push 0x19
push str.CreateSubFolders___failed
call fcn.00402660
call fcn.004047f0
mov edi, eax
test edi, edi
je 0x437206
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x24]
push 0
push 0x530654
call fcn.00402660
push ecx
lea eax, [ebp - 0x20]
push eax
push ecx
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x24]
push eax
call fcn.0042bba0
mov byte [ebp - 4], 2
or edx, 0xffffffff
mov ecx, dword [ebp - 0x24]
mov eax, edx
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x43694e
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
or edx, 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], edx
dec edx
test edx, edx
jg 0x436979
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
mov esi, dword [ebp - 0x30]
mov ecx, ebx
push 0
push esi
push 0
call fcn.0043aad0
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 - 0x4c], 0xc
cmp eax, esi
mov dword [ebp - 0x48], 0
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x44], 0
sbb eax, eax
neg eax
add eax, 2
mov dword [ebp - 0x34], eax
call fcn.0040a180
mov dword [ebp - 4], 0xa
cmp byte [edi + 0x84], 0
je 0x436a10
test esi, esi
jne 0x436a10
push 1
push 0x10000000
push 0x532354
lea ecx, [ebp - 0x7c]
call fcn.0040a370
push 1
push 0x10000000
push str.S_1_5_18
lea ecx, [ebp - 0x7c]
call fcn.0040a370
lea ecx, [ebp - 0x7c]
call fcn.0040a8f0
mov dword [ebp - 0x48], eax
mov eax, dword [edi + 0x1c]
lea ecx, [edi + 0x1c]
cmp dword [eax - 4], 1
jle 0x436a27
push dword [eax - 0xc]
call fcn.004024c0
lea ecx, [edi + 0x1c]
push 0
push 0x80
push dword [ebp - 0x34]
xor edx, edx
lea eax, [ebp - 0x4c]
cmp dword [ebp - 0x48], edx
cmove eax, edx
push eax
push edx
push 0xc0000000
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
je 0x436a64
test esi, esi
je 0x436a64
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.0040a220
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x40], 0x5305e4
mov dword [ebp - 0x3c], eax
mov dword [ebp - 4], 0xb
cmp eax, 0xffffffff
jne 0x436bc6
call fcn.0042b830
cmp byte [eax + 0x1c], 0
je 0x436b92
call fcn.0042b830
test byte [eax + 0x20], 8
je 0x436b92
call fcn.0042b830
mov dword [ebp - 0x34], eax
call fcn.004047f0
mov edi, eax
test edi, edi
je 0x437206
mov edx, dword [edi]
mov esi, dword [edx + 0xc]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x20]
push 0x2b
push str.Creation_of_file_to_download_on_disk_failed
call fcn.00402660
call fcn.004047f0
mov edi, eax
test edi, edi
je 0x437206
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x24]
push 0
push 0x530654
call fcn.00402660
push ecx
lea eax, [ebp - 0x20]
push eax
push ecx
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x24]
push eax
call fcn.0042bba0
mov byte [ebp - 4], 0xe
or edx, 0xffffffff
mov ecx, dword [ebp - 0x24]
mov eax, edx
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x436b6a
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
or edx, 0xffffffff
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], edx
dec edx
test edx, edx
jg 0x436b92
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
mov ecx, ebx
call fcn.0043acb0
test al, al
je 0x436ba7
mov edi, 0xe0000008
jmp 0x4371cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x18]
mov ebx, eax
push 0
push ebx
push 0
mov dword [ebp - 0x10], ebx
call fcn.0043aad0
mov edi, ebx
jmp 0x4371cd
mov ebx, dword [ebx]
test esi, esi
je 0x436bd5
test ebx, ebx
je 0x436bec
push dword [ebp + 0x14]
jmp 0x436bdb
test ebx, ebx
je 0x436bec
push 0
mov eax, dword [ebx]
mov esi, dword [eax + 0x18]
mov ecx, esi
call dword [0x525578]
mov ecx, ebx
call esi
mov dword [ebp - 0x34], 0
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x34]
push 0xc800
call fcn.00408a70
mov esi, dword [ebp - 0x34]
lea eax, [edi + 0x38]
mov dword [ebp - 0x28], eax
nop dword [eax]
mov ebx, dword [ebp - 0x14]
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 - 0x24]
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 0x436ccc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [ebp - 0x10], ebx
cmp ebx, 0x3e5
jne 0x436cb5
mov eax, dword [ebp - 0x28]
cmp byte [eax], 0
jne 0x436c9d
mov edi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x436c9d
lea eax, [edi + 0x38]
mov ecx, ebx
push eax
call fcn.0043ae50
mov ecx, ebx
call fcn.0043acb0
test al, al
jne 0x436fbc
push 0xa
push dword [edi + 0x68]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [edi + 0x38], 0
je 0x436c65
mov edi, dword [ebp - 0x14]
cmp dword [edi + 0x30], 0
mov ebx, dword [edi + 0x2c]
mov dword [ebp - 0x10], ebx
je 0x436cb8
test ebx, ebx
jle 0x436cd7
mov dword [ebp - 0x24], ebx
jmp 0x436cda
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x20], 0
test ebx, ebx
jne 0x436da6
mov ebx, dword [ebp - 0x24]
jmp 0x436ce1
mov edi, ebx
push dword [edi + 0x68]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ebx, dword [ebp - 0x24]
mov dword [ebp - 0x20], 0
test ebx, ebx
je 0x436e66
mov edi, dword [edi + 4]
cmp ebx, 0xc800
mov eax, 0xc800
cmova ebx, eax
mov eax, dword [ebp - 0x28]
mov byte [eax], 0
mov eax, dword [ebp - 0x14]
push dword [eax + 0x68]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [ebp - 0x14]
mov byte [eax + 0x41], 0
mov dword [eax + 0x34], 3
lea eax, [ebp - 0x20]
push eax
push ebx
push esi
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x436df1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [ebp - 0x10], ebx
cmp ebx, 0x3e5
jne 0x436d9f
mov edi, dword [ebp - 0x28]
cmp byte [edi], 0
jne 0x436d87
mov ebx, dword [ebp - 0x18]
nop dword [eax]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x436d87
push edi
mov ecx, ebx
call fcn.0043ae50
mov ecx, ebx
call fcn.0043acb0
test al, al
jne 0x436fc3
mov eax, dword [ebp - 0x14]
push 0xa
push dword [eax + 0x68]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [edi], 0
je 0x436d50
mov edi, dword [ebp - 0x14]
cmp dword [edi + 0x30], 0
mov ebx, dword [edi + 0x2c]
mov dword [ebp - 0x10], ebx
je 0x436da2
test ebx, ebx
jle 0x436dfd
mov dword [ebp - 0x20], ebx
jmp 0x436e00
mov edi, dword [ebp - 0x14]
test ebx, ebx
je 0x436dfd
mov eax, ebx
cmp ebx, 0x2ee2
je 0x436dd2
mov dword [ebp - 0x10], ebx
cmp eax, 0x2efe
je 0x436dd2
mov dword [ebp - 0x10], ebx
cmp eax, 0x2eff
je 0x436dd2
mov dword [ebp - 0x10], ebx
cmp eax, 0x2f83
jne 0x4370ff
mov edi, dword [ebp - 0x14]
cmp byte [edi + 0x8c], 0
je 0x4370ff
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x1c]
jmp 0x436f9d
mov edi, dword [ebp - 0x14]
push dword [edi + 0x68]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x436e66
push 0
lea eax, [ebp - 0x38]
push eax
push ebx
push esi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x436fd2
mov eax, dword [edi + 0xc]
lea ebx, [edi + 0xc]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x436e42
mov eax, dword [eax]
push dword [ebp - 0x38]
mov edi, dword [eax + 0x18]
mov ecx, edi
call dword [0x525578]
mov ecx, dword [ebp - 0x10]
call edi
mov edi, dword [ebp - 0x14]
lea eax, [edi + 0x38]
mov ecx, ebx
push eax
call fcn.0043ae50
mov ecx, ebx
call fcn.0043acb0
test al, al
je 0x436fb4
mov edi, 0xe0000008
jmp 0x4371b9
call fcn.0042b830
cmp byte [eax + 0x1c], 0
je 0x436f69
call fcn.0042b830
test byte [eax + 0x20], 8
je 0x436f69
call fcn.0042b830
mov dword [ebp - 0x10], eax
call fcn.004047f0
mov ebx, eax
test ebx, ebx
je 0x437206
mov edx, dword [ebx]
mov edi, dword [edx + 0xc]
mov ecx, edi
call dword [0x525578]
mov ecx, ebx
call edi
add eax, 0x10
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x30]
push 0x21
push str.AsyncDownloadThread_read_0_bytes.
call fcn.00402660
call fcn.004047f0
mov ebx, eax
test ebx, ebx
je 0x437206
mov eax, dword [ebx]
mov edi, dword [eax + 0xc]
mov ecx, edi
call dword [0x525578]
mov ecx, ebx
call edi
add eax, 0x10
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x2c]
push 0
push 0x530654
call fcn.00402660
push ecx
lea eax, [ebp - 0x30]
push eax
push ecx
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x2c]
push eax
call fcn.0042bba0
mov byte [ebp - 4], 0x19
or eax, 0xffffffff
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x436f3b
mov ebx, dword [ecx]
push ecx
mov eax, dword [ebx]
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x525578]
mov ecx, ebx
call edi
mov byte [ebp - 4], 0x16
or eax, 0xffffffff
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x436f66
mov ebx, dword [ecx]
push ecx
mov eax, dword [ebx]
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x525578]
mov ecx, ebx
call edi
mov edi, dword [ebp - 0x14]
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp - 0x1c]
jbe 0x437137
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, dword [ebp + 0x10]
jae 0x437137
cmp byte [edi + 0x8c], 0
je 0x43711c
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
push ebx
push dword [ebp + 8]
mov ecx, edi
call fcn.00437b60
mov ebx, eax
mov dword [ebp - 0x10], ebx
test ebx, ebx
jne 0x4370ff
lea eax, [edi + 0x38]
jmp 0x436c10
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x10], 0xe0000008
mov edi, dword [ebp - 0x10]
jmp 0x4371b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [ebp - 0x10], ebx
call fcn.0042b830
cmp byte [eax + 0x1c], 0
je 0x4370ea
call fcn.0042b830
test byte [eax + 0x20], 8
je 0x4370ea
call fcn.0042b830
mov dword [ebp - 0x14], eax
call fcn.004047f0
mov dword [ebp - 0x30], eax
test eax, eax
je 0x437206
mov edx, dword [eax]
mov edi, dword [edx + 0xc]
mov ecx, edi
call dword [0x525578]
mov ecx, dword [ebp - 0x30]
call edi
add eax, 0x10
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 0x23
lea ecx, [ebp - 0x2c]
push 0x26
push str.Failed_to_saved_in_file_the_bytes_read
call fcn.00402660
push ebx
lea ecx, [ebp - 0x2c]
call fcn.0042b320
mov dword [ebp - 0x28], eax
call fcn.004047f0
mov ebx, eax
test ebx, ebx
je 0x437206
mov edx, dword [ebx]
mov edi, dword [edx + 0xc]
mov ecx, edi
call dword [0x525578]
mov ecx, ebx
call edi
add eax, 0x10
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 0x26
lea ecx, [ebp - 0x30]
push 0
push 0x530654
call fcn.00402660
push ecx
push dword [ebp - 0x28]
lea eax, [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0x14]
push eax
call fcn.0042bba0
mov byte [ebp - 4], 0x23
or eax, 0xffffffff
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x4370bf
mov ebx, dword [ecx]
push ecx
mov eax, dword [ebx]
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x525578]
mov ecx, ebx
call edi
mov byte [ebp - 4], 0x16
or eax, 0xffffffff
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x4370ea
mov ebx, dword [ecx]
push ecx
mov eax, dword [ebx]
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x525578]
mov ecx, ebx
call edi
mov edi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
push 0
push edi
push 0
call fcn.0043aad0
jmp 0x4371b9
cmp ebx, 0xe0000008
je 0x437114
mov ecx, dword [ebp - 0x18]
push 0
push ebx
push 0
call fcn.0043aad0
mov edi, dword [ebp - 0x10]
jmp 0x4371b9
mov ecx, dword [ebp - 0x18]
push 0
push 0xe000000f
push 0
call fcn.0043aad0
mov edi, 0xe000000f
jmp 0x4371b9
test ebx, ebx
je 0x43714a
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x3c], eax
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [edi + 0x18]
push dword [edi + 0x1c]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x437199
push eax
push dword [edi + 0x18]
push dword [edi + 0x1c]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x437190
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea ecx, [edi + 0xc]
push 0
push ebx
push 0
mov dword [ebp - 0x10], ebx
call fcn.0043aad0
mov edi, ebx
jmp 0x4371b9
push dword [edi + 0x1c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x18]
mov ebx, dword [eax]
test ebx, ebx
je 0x4371b7
mov eax, dword [ebx]
push 0
push 1
mov edi, dword [eax + 0x14]
mov ecx, edi
call dword [0x525578]
mov ecx, ebx
call edi
xor edi, edi
mov byte [ebp - 4], 0xb
push esi
call fcn.004d4092
add esp, 4
mov dword [ebp - 0x34], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x40], 0x5305e4
test eax, eax
je 0x4371f0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x3c], 0
mov eax, edi
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.004027d0
int3