Function at 0x404276
Capabilities:
Delete file

Disassembly:
mov eax, 0x41d906
call fcn.004128c4
sub esp, 0x8c
mov eax, dword [0x4280c8]
push esi
lea esi, [edi + 0x38]
push dword [esi]
mov dword [ebp - 0x10], eax
push str.CDownloadFile::SaveDowmloadStatus_Begin__s_n
call fcn.0040b1f8
lea eax, [edi + 0x54]
push 0x41e42c
push eax
call fcn.004051bc
add esp, 0x10
test eax, eax
je 0x4045bc
mov eax, dword [esi]
push ebx
mov ebx, dword [eax - 0xc]
push 0x5c
call fcn.00404cb1
mov ecx, ebx
sub ecx, eax
lea eax, [ebp - 0x58]
push eax
dec ecx
mov eax, esi
call fcn.00404ccf
xor esi, esi
mov dword [ebp - 4], esi
mov eax, dword [edi + 0x40]
lea eax, [eax*8 + 8]
push eax
call fcn.0040f0dc
mov ebx, eax
mov eax, dword [edi + 0x40]
lea eax, [eax*8 + 8]
push eax
push esi
push ebx
mov dword [ebp - 0x6c], ebx
call fcn.0040f270
lea eax, [edi + 0x18]
add esp, 0x10
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x74], eax
jmp 0x404310
xor esi, esi
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x5c], esi
mov esi, dword [edi + 0x3c]
mov dword [ebp - 0x70], esi
call fcn.00404d22
push eax
push str.SaveDowmloadStatus_Thread_number___d_n
mov dword [ebp - 0x60], eax
call fcn.0040b1f8
and dword [ebp - 0x54], 0
cmp dword [ebp - 0x60], 0
pop ecx
pop ecx
jbe 0x4043aa
mov eax, dword [edi + 0x1c]
mov ecx, dword [ebp - 0x54]
lea eax, [eax + ecx*4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x5c]
mov edx, dword [eax + 0x38]
shl ecx, 3
lea esi, [ecx + ebx]
mov dword [esi], edx
lea ebx, [ecx + ebx + 4]
mov ecx, dword [eax + 0x3c]
mov dword [ebx], ecx
push dword [eax + 0x38]
push dword [eax + 0x3c]
push dword [ebp - 0x54]
push str.SaveDowmloadStatus_Thread__d:__u__u__n
call fcn.0040b1f8
mov esi, dword [esi]
mov ebx, dword [ebx]
add esp, 0x10
cmp esi, ebx
jle 0x404399
mov eax, dword [ebp - 0x5c]
cmp eax, dword [edi + 0x40]
jge 0x404459
mov eax, dword [ebp - 0x64]
sub esi, ebx
inc dword [ebp - 0x5c]
lea eax, [eax + esi + 1]
mov dword [ebp - 0x64], eax
inc dword [ebp - 0x54]
mov eax, dword [ebp - 0x54]
cmp eax, dword [ebp - 0x60]
mov ebx, dword [ebp - 0x6c]
jb 0x40433e
mov esi, dword [ebp - 0x70]
mov eax, dword [edi + 0x30]
mov ecx, dword [ebp - 0x64]
mov edx, eax
sub edx, esi
sub edx, dword [ebp - 0x64]
add ecx, esi
push edx
push ecx
push eax
push dword [ebp - 0x58]
mov dword [ebp - 0x60], ecx
push str.SaveDowmloadStatus__s:__u____u___u_n
call fcn.0040b1f8
mov eax, dword [ebp - 0x60]
add esp, 0x14
cmp eax, dword [edi + 0x30]
je 0x4043ec
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 0x68]
cmp dword [ebp - 0x68], 3
jl 0x40430e
cmp dword [ebp - 0x68], 3
je 0x40445c
cmp dword [edi + 0x30], esi
jne 0x40447f
cmp dword [edi + 0x4c], 0
je 0x40447f
mov ecx, dword [edi + 0x38]
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x98]
call fcn.004035d3
cmp eax, dword [edi + 0x4c]
je 0x40447f
push dword [ebp - 0x58]
push 0x420df8
call fcn.0040b1f8
pop ecx
pop ecx
xor eax, eax
mov esi, edi
call fcn.00402f87
push 0x12345678
push 0
xor eax, eax
mov ecx, edi
call fcn.00402e8b
push dword [edi + 0x38]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, edi
mov dword [edi + 0x3c], 0
call fcn.00404019
jmp 0x40445c
mov ebx, dword [ebp - 0x6c]
push ebx
call fcn.00410b38
mov eax, dword [ebp - 0x74]
pop ecx
call fcn.00404d22
test eax, eax
je 0x404477
xor esi, esi
inc esi
jmp 0x4045ae
or esi, 0xffffffff
jmp 0x4045ae
push dword [edi + 0x48]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push dword [edi + 0x34]
push str.FileName
push dword [ebp - 0x58]
call esi
push 0xa
lea eax, [ebp - 0x30]
push eax
push dword [edi + 0x30]
call fcn.00410df9
add esp, 0xc
push dword [edi + 0x48]
lea eax, [ebp - 0x30]
push eax
push str.FileSize
push dword [ebp - 0x58]
call esi
push 0xa
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x70]
call fcn.00410df9
add esp, 0xc
push dword [edi + 0x48]
lea eax, [ebp - 0x30]
push eax
push str.DownloadSize
push dword [ebp - 0x58]
call esi
push 0xa
lea eax, [ebp - 0x30]
push eax
push dword [edi + 0x40]
call fcn.00410df9
add esp, 0xc
push dword [edi + 0x48]
lea eax, [ebp - 0x30]
push eax
push str.ThreadNumber
push dword [ebp - 0x58]
call esi
and dword [ebp - 0x54], 0
cmp dword [edi + 0x40], 0
jle 0x4045a5
push dword [ebp - 0x54]
lea eax, [ebp - 0x50]
push str.Thread_dEnd
push eax
call fcn.00410bc3
mov eax, dword [ebp - 0x54]
add esp, 0xc
cmp eax, dword [ebp - 0x5c]
jge 0x404538
push 0xa
lea ecx, [ebp - 0x30]
push ecx
push dword [ebx + eax*8]
call fcn.00410df9
add esp, 0xc
jmp 0x40453f
mov dword [ebp - 0x30], 0x30
push dword [edi + 0x48]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x58]
call esi
push dword [ebp - 0x54]
lea eax, [ebp - 0x50]
push 0x42133c
push eax
call fcn.00410bc3
mov eax, dword [ebp - 0x54]
add esp, 0xc
cmp eax, dword [ebp - 0x5c]
jge 0x40457f
push 0xa
lea ecx, [ebp - 0x30]
push ecx
push dword [ebx + eax*8 + 4]
call fcn.00410df9
add esp, 0xc
jmp 0x404586
mov dword [ebp - 0x30], 0x31
push dword [edi + 0x48]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x58]
call esi
inc dword [ebp - 0x54]
mov eax, dword [ebp - 0x54]
cmp eax, dword [edi + 0x40]
jl 0x404509
push ebx
call fcn.00410b38
pop ecx
xor esi, esi
mov eax, dword [ebp - 0x58]
add eax, 0xfffffff0
call fcn.00402528
mov eax, esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
call fcn.004120cb
leave
ret