Function at 0x404430
Capabilities:
Check if file exists
Delete file
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49e5ec
mov eax, dword fs:[0]
push eax
sub esp, 0x854
mov eax, dword [0x4c9890]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x404470
mov eax, 0x80700002
jmp 0x404b1e
push dword [esi + 0x38c]
xorps xmm0, xmm0
push dword [esi + 0x388]
mov ebx, 0x80004005
push str.Start_to_download__totally__I64d
movlpd qword [ebp - 0x848], xmm0
call fcn.00413860
mov eax, dword [esi + 0x39c]
add esp, 0xc
cmp eax, dword [esi + 0x38c]
jl 0x4044c1
jg 0x4044b7
mov eax, dword [esi + 0x398]
cmp eax, dword [esi + 0x388]
jb 0x4044c1
mov eax, 1
jmp 0x404b1e
mov eax, dword [esi + 0x890]
lea ecx, [esi + 0x890]
mov dword [ecx + 4], eax
cmp byte [esi + 0x384], 0
jne 0x4046ca
lea eax, [ebp - 0x834]
push eax
mov dword [ebp - 0x834], 0xffffffff
call fcn.00404f90
mov eax, dword [esi + 0x390]
mov edi, dword [esi + 0x388]
mov ecx, dword [esi + 0x394]
sub edi, eax
mov dword [ebp - 0x838], eax
mov eax, dword [esi + 0x38c]
sbb eax, ecx
push 0x460
mov dword [ebp - 0x840], ecx
mov dword [ebp - 0x834], eax
mov dword [esi + 0x3b0], edi
mov dword [esi + 0x3b4], eax
call fcn.004867f5
mov ecx, eax
add esp, 4
mov dword [ebp - 0x844], ecx
mov dword [ebp - 4], 0
test ecx, ecx
je 0x404574
lea eax, [esi + 0x860]
push eax
lea eax, [esi + 0x58]
push eax
push dword [ebp - 0x834]
push edi
push dword [ebp - 0x840]
push dword [ebp - 0x838]
push 0
call fcn.004016b0
jmp 0x404576
xor eax, eax
mov dword [ebp - 0x834], eax
lea eax, [ebp - 0x834]
push eax
lea ecx, [esi + 0x3bc]
mov dword [ebp - 4], 0xffffffff
call fcn.00404f90
mov eax, dword [esi + 0x3bc]
push dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [eax + 0x2c], 0x403450
mov dword [eax + 0x30], esi
mov ecx, dword [esi + 0x3bc]
lea eax, [esi + 0x5d0]
mov ecx, dword [ecx]
push eax
push 0
push dword [esi + 0x3c]
push dword [esi + 0x50]
call fcn.00402e60
mov eax, dword [esi + 0x3bc]
mov eax, dword [eax]
mov ecx, dword [eax + 0x28]
mov eax, dword [ecx]
add dword [esi + 0x398], eax
mov eax, dword [ecx + 4]
adc dword [esi + 0x39c], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x830], ax
lea eax, [ebp - 0x82e]
push eax
call fcn.004866f0
lea eax, [esi + 0x5d0]
push eax
push str._s.tmp
lea eax, [ebp - 0x830]
push 0x103
push eax
call fcn.00401690
add esp, 0x1c
cmp dword [esi + 0x83c], 0
jne 0x404640
lea eax, [ebp - 0x830]
push 0x4a1bb8
push eax
call fcn.00487587
add esp, 8
mov dword [esi + 0x83c], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.004866f0
push 0x103
lea edi, [esi + 0x3c8]
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.00487152
xor eax, eax
add esp, 0x18
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x858]
push eax
lea eax, [ebp - 0x860]
push eax
lea eax, [ebp - 0x850]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x4049ef
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x404983
mov ecx, eax
jmp 0x40498c
xor edi, edi
mov dword [ebp - 0x838], edi
cmp dword [esi + 0x3b8], edi
jle 0x40489e
lea ebx, [esi + 0x1e8]
mov dword [ebp - 0x83c], ebx
jmp 0x4046f6
mov ebx, dword [ebp - 0x83c]
lea eax, [ebp - 0x834]
push eax
mov dword [ebp - 0x834], 0xffffffff
call fcn.00404f90
cmp dword [esi + 0x3b4], 0
jl 0x404727
jg 0x404720
cmp dword [esi + 0x3b0], 0
jbe 0x404727
mov edi, dword [ebx]
mov ebx, dword [ebx + 4]
jmp 0x40474c
mov eax, edi
cdq
mov edi, eax
mov eax, dword [ebp - 0x83c]
mov ebx, edx
shld ebx, edi, 0x16
shl edi, 0x16
add edi, dword [esi + 0x390]
adc ebx, dword [esi + 0x394]
mov dword [eax], edi
mov dword [eax + 4], ebx
mov ecx, dword [esi + 0x388]
mov edx, dword [esi + 0x38c]
sub ecx, 1
sbb edx, 0
mov eax, edi
add eax, 0x400000
mov dword [ebp - 0x844], eax
mov eax, ebx
adc eax, 0
mov dword [ebp - 0x840], ecx
mov dword [ebp - 0x834], edx
cmp eax, edx
jl 0x40478a
jg 0x4047a2
cmp dword [ebp - 0x844], ecx
ja 0x4047a2
mov eax, edi
add eax, 0x3fffff
mov dword [ebp - 0x840], eax
mov eax, ebx
adc eax, 0
mov dword [ebp - 0x834], eax
push 0x460
call fcn.004867f5
mov ecx, eax
add esp, 4
mov dword [ebp - 0x844], ecx
mov dword [ebp - 4], 1
test ecx, ecx
je 0x4047f1
lea eax, [esi + 0x860]
push eax
mov eax, dword [ebp - 0x83c]
add eax, 0xfffffe70
push eax
push dword [ebp - 0x834]
push dword [ebp - 0x840]
push ebx
push edi
mov edi, dword [ebp - 0x838]
push edi
call fcn.004016b0
jmp 0x4047f9
mov edi, dword [ebp - 0x838]
xor eax, eax
mov dword [ebp - 0x844], eax
lea eax, [ebp - 0x844]
push eax
lea ecx, [esi + 0x3bc]
mov dword [ebp - 4], 0xffffffff
call fcn.00404f90
mov eax, dword [esi + 0x3bc]
push dword [ebp + 0xc]
mov eax, dword [eax + edi*4]
mov dword [eax + 0x2c], 0x403450
mov dword [eax + 0x30], esi
mov ecx, dword [esi + 0x3bc]
lea eax, [esi + 0x5d0]
mov ecx, dword [ecx + edi*4]
push eax
push 1
push dword [esi + 0x3c]
push dword [esi + 0x50]
call fcn.00402e60
mov ecx, dword [esi + 0x3bc]
mov ebx, eax
mov ecx, dword [ecx + edi*4]
mov edi, dword [ebp - 0x838]
mov edx, dword [ecx + 0x28]
mov ecx, dword [edx]
add dword [esi + 0x398], ecx
mov ecx, dword [edx + 4]
adc dword [esi + 0x39c], ecx
add dword [ebp - 0x83c], 8
inc edi
mov dword [ebp - 0x838], edi
lea ecx, [esi + 0x890]
cmp edi, dword [esi + 0x3b8]
jl 0x4046f0
mov eax, dword [ebp - 0x840]
mov ecx, dword [ebp - 0x834]
jmp 0x4048aa
mov ecx, dword [ebp - 0x844]
mov eax, dword [ebp - 0x848]
mov edi, dword [esi + 0x3b4]
mov edx, dword [esi + 0x3b0]
test edi, edi
jl 0x4048c0
jg 0x4048c4
test edx, edx
jne 0x4048c4
mov edx, eax
mov edi, ecx
mov ecx, dword [esi + 0x3a8]
add ecx, dword [esi + 0x390]
mov eax, dword [esi + 0x3ac]
adc eax, dword [esi + 0x394]
add dword [esi + 0x398], ecx
mov dword [esi + 0x3b0], edx
mov dword [esi + 0x3b4], edi
adc dword [esi + 0x39c], eax
mov eax, dword [esi + 0x39c]
cmp eax, dword [esi + 0x38c]
jl 0x4045e2
jg 0x40491a
mov eax, dword [esi + 0x398]
cmp eax, dword [esi + 0x388]
jb 0x4045e2
mov eax, dword [esi + 0x378]
test eax, eax
je 0x404937
push dword [esi + 0x37c]
push 0
push ebx
push 0x47c
call eax
add esp, 0x10
cmp byte [esi + 0x385], 0
mov ecx, esi
je 0x404949
call fcn.00404230
jmp 0x40494e
call fcn.00403010
test eax, eax
je 0x4044b7
mov ecx, esi
call fcn.00403190
mov edi, eax
mov eax, dword [esi + 0x378]
test eax, eax
je 0x40497c
push dword [esi + 0x37c]
push 0
push edi
push 0x474
call eax
add esp, 0x10
mov eax, edi
jmp 0x404b1e
movzx ecx, ax
or ecx, 0x80070000
push ecx
push eax
push str.GetDiskFreeSpaceEx
push str._s_failed__error___d__0x_x_
call fcn.00413860
add esp, 0x10
call esi
mov esi, eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call fcn.004866f0
push esi
push str._ERROR_GetDiskFreeSpaceEx_failed___dwErrorCode___.8X
lea eax, [ebp - 0x420]
push 0x103
push eax
call fcn.00401690
lea eax, [ebp - 0x420]
push eax
call fcn.004010d0
add esp, 0x20
mov eax, 0x80070005
jmp 0x404b1e
mov ecx, dword [esi + 0x388]
sub ecx, dword [esi + 0x398]
mov eax, dword [esi + 0x38c]
sbb eax, dword [esi + 0x39c]
cmp dword [ebp - 0x84c], eax
ja 0x404a30
jb 0x404a19
cmp dword [ebp - 0x850], ecx
jae 0x404a30
push str._ERROR__E_MBD_NO_DISK_SPACE_
call fcn.004010d0
add esp, 4
mov eax, 0x80700007
jmp 0x404b1e
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x404a9c
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
mov ebx, eax
test ebx, ebx
jns 0x404a9c
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x628], ax
lea eax, [ebp - 0x626]
push eax
call fcn.004866f0
push ebx
push str._ERROR_SHCreateDirectory___failed___hr___.8X
lea eax, [ebp - 0x628]
push 0x103
push eax
call fcn.00401690
lea eax, [ebp - 0x628]
push eax
call fcn.004010d0
add esp, 0x20
jmp 0x404b1c
push 0x4a2a0c
push edi
call fcn.00487587
add esp, 8
test eax, eax
jne 0x404ac2
push str._ERROR___wfopen_failed__E_ACCESSDENIED
call fcn.004010d0
add esp, 4
mov eax, 0x80070005
jmp 0x404b1e
push eax
call fcn.00487717
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [esi + 0x384], 0
jne 0x404aef
mov ecx, dword [esi + 0x3bc]
push dword [ebp + 8]
mov ecx, dword [ecx]
call fcn.00404b40
mov ebx, eax
jmp 0x404b1c
xor edi, edi
cmp dword [esi + 0x3b8], edi
jle 0x404b1c
lea esp, [esp]
mov eax, dword [esi + 0x3bc]
push dword [ebp + 8]
mov ecx, dword [eax + edi*4]
call fcn.00404b40
inc edi
mov ebx, eax
cmp edi, dword [esi + 0x3b8]
jl 0x404b00
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00487c50
mov esp, ebp
pop ebp
ret 8