Function at 0x41d240
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d25c0
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x5178cc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
lea ebx, [edi + 0x2d4]
mov byte [edi + 0x348], 0
mov dword [edi + 0x33c], 0
cmp dword [ebx + 0x14], 8
jb 0x41d291
mov eax, dword [ebx]
jmp 0x41d293
mov eax, ebx
push eax
push str.start_download_player_playerurl_is__s
push 0x2d4
push str.DownloaderModel::_downloadByENUrl
call fcn.0040bb00
push str..tmp
mov edx, esi
lea ecx, [ebp - 0x2c]
call fcn.00407f00
add esp, 0x14
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x41d301
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x2c]
push eax
cmovae ecx, dword [ebp - 0x2c]
push ecx
push 0x4f3c18
push 0x122
push str.utility::ufile::removeFile
call fcn.0040bb00
add esp, 0x14
push 0
push 0x1f4
push 2
push ecx
push ebx
lea ecx, [ebp - 0x2c]
push ecx
push edi
lea ecx, [edi + 0x1a0]
call fcn.0042b5f0
test al, al
jne 0x41d464
push str.download_1_error
push 0x2de
push str.DownloaderModel::_downloadByENUrl
call fcn.0040bb00
add esp, 0xc
lea eax, [ebp - 0x2c]
push 1
push 0x1f4
push 2
push ecx
push ebx
push eax
push edi
lea ecx, [edi + 0x204]
call fcn.0042b5f0
test al, al
jne 0x41d3f5
push str.download_2_error
push 0x2e0
push str.DownloaderModel::_downloadByENUrl
call fcn.0040bb00
add esp, 0xc
lea eax, [ebp - 0x44]
push eax
call fcn.0040ca40
mov ecx, eax
call fcn.0040cc70
push 0
push 0x1f4
push 2
push ecx
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x2c]
push eax
push edi
lea ecx, [edi + 0x1a0]
call fcn.0042b5f0
test al, al
jne 0x41d3e6
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
push str.download__s_error
push 0x2e3
push str.DownloaderModel::_downloadByENUrl
call fcn.0040bb00
add esp, 0x10
cmp dword [ebp - 0x30], 8
jb 0x41d3df
push dword [ebp - 0x44]
call fcn.0048ec00
add esp, 4
xor bl, bl
jmp 0x41d4e6
mov byte [ebp - 4], 0
cmp dword [ebp - 0x30], 8
jb 0x41d464
push dword [ebp - 0x44]
jmp 0x41d45c
push str.download_Success_socket
lea ecx, [ebp - 0x5c]
call fcn.004068b0
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 2
push eax
call fcn.00419390
mov ecx, eax
call fcn.0041b430
push eax
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 3
push eax
call fcn.00419390
mov ecx, eax
call fcn.00420d10
cmp dword [ebp - 0x30], 8
jb 0x41d43c
push dword [ebp - 0x44]
call fcn.0048ec00
add esp, 4
xor eax, eax
mov dword [ebp - 0x30], 7
mov byte [ebp - 4], al
cmp dword [ebp - 0x48], 8
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
jb 0x41d464
push dword [ebp - 0x5c]
call fcn.0048ec00
add esp, 4
cmp dword [esi + 0x14], 8
jb 0x41d46e
mov ecx, dword [esi]
jmp 0x41d470
mov ecx, esi
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 3
cmovae eax, dword [ebp - 0x2c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x41d4c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esi + 0x14], 8
mov edx, eax
jb 0x41d49b
mov ecx, dword [esi]
jmp 0x41d49d
mov ecx, esi
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push edx
cmovae eax, dword [ebp - 0x2c]
push 3
push ecx
push eax
push str.move_file_from____s___to____s___flag___d_failed__error___d.
push 0xbe
push str.utility::ufile::moveFile
call fcn.0040bb00
add esp, 0x1c
cmp dword [esi + 0x14], 8
jb 0x41d4cc
mov esi, dword [esi]
push esi
push str.download_file_success_file___s
push 0x2ed
push str.DownloaderModel::_downloadByENUrl
call fcn.0040bb00
add esp, 0x10
mov bl, 1
cmp dword [ebp - 0x18], 8
jb 0x41d4f7
push dword [ebp - 0x2c]
call fcn.0048ec00
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0049b793
mov esp, ebp
pop ebp
ret 4