Function at 0x410a30
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44b7dc
mov eax, dword fs:[0]
push eax
sub esp, 0x9f8
mov eax, dword [0x466910]
xor eax, esp
mov dword [esp + 0x9f0], eax
push ebx
push esi
push edi
mov eax, dword [0x466910]
xor eax, esp
push eax
lea eax, [esp + 0xa08]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, ecx
lea eax, [edi + 0x20c]
push eax
lea ebx, [edi + 0xb1c]
push 0x104
push ebx
mov dword [esp + 0x28], edi
mov dword [esp + 0x3c], eax
call fcn.0043349d
add esp, 0xc
add esi, 0xd66
push esi
lea eax, [edi + 0x414]
push 0x104
push eax
mov dword [esp + 0x34], eax
call fcn.0043349d
add esp, 0xc
push esi
push 0x104
push ebx
call fcn.0043350c
add esp, 0xc
push str..ini
push 0x104
push ebx
call fcn.0043350c
add esp, 0xc
lea edx, [edi + 4]
push esi
push edx
push str._s_s
call fcn.00411e60
add esp, 0xc
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x410b81
mov ecx, edi
call fcn.00410600
test al, al
je 0x410b33
mov eax, dword [esp + 0x28]
push eax
push str.Start_resume_download_for_file__s
mov ecx, 0x467be0
call fcn.0040f810
add esp, 8
lea eax, [edi + 0x1000]
call fcn.00412810
mov byte [edi + 0x1b84], 1
jmp 0x4110ba
cmp dword [edi + 0x126c], 0
jne 0x410b55
push str.ResumeDownload_cancelled_as_internet_not_availble_
mov ecx, 0x467be0
call fcn.0040f810
add esp, 4
xor al, al
jmp 0x4110bc
mov ecx, dword [esp + 0x28]
push ecx
push str.ResumeDownload_cancelled_for_file__s_due_to_server_file_version_mismatch_
mov ecx, 0x467be0
call fcn.0040f810
mov edx, dword [esp + 0x38]
add esp, 4
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call fcn.004014b0
call fcn.00411c10
push 0xc00
call fcn.00415923
add esp, 4
mov dword [esp + 0x24], eax
xor ecx, ecx
mov dword [esp + 0xa10], ecx
cmp eax, ecx
je 0x410bad
push eax
call fcn.0040fa10
mov esi, eax
mov dword [esp + 0x2c], esi
jmp 0x410bb3
mov dword [esp + 0x2c], ecx
mov esi, ecx
lea eax, [edi + 0x126c]
lea edx, [edi + 0xd24]
mov dword [esp + 0xa10], 0xffffffff
push eax
mov ecx, esi
mov dword [esp + 0x38], eax
mov dword [esp + 0x28], edx
call fcn.0040fbe0
mov eax, dword [esp + 0x34]
mov eax, dword [eax]
mov dword [esp + 0x20], eax
test eax, eax
je 0x410b4e
cmp dword [edi + 0x1b78], eax
je 0x410bfa
mov dword [edi + 0x1b78], eax
mov ecx, dword [edi + 0x1b78]
test ecx, ecx
je 0x410c2c
cmp ecx, eax
je 0x410c2c
push str.Serverversion_size_and_actual_file_size_mismatch_
mov ecx, 0x467be0
call fcn.0040f810
add esp, 4
test esi, esi
je 0x410c25
mov eax, esi
call fcn.0040fd80
xor al, al
jmp 0x4110bc
mov ecx, dword [esp + 0x24]
push ebx
push ecx
lea eax, [edi + 0xdec]
push str.SourceUrl
push eax
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x7fe]
push eax
mov word [esp + 0x800], dx
call fcn.00437170
mov ecx, dword [esp + 0x2c]
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push ecx
lea edx, [esp + 0x7f8]
push 0x458740
push edx
call edi
mov ecx, dword [esp + 0x20]
add esp, 0xc
push ebx
lea eax, [esp + 0x7f8]
push eax
push str.FullFileSize
push ecx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov edx, dword [0x467bb4]
push edx
lea eax, [esp + 0x7f8]
push 0x458740
push eax
call edi
mov edx, dword [esp + 0x20]
add esp, 0xc
push ebx
lea ecx, [esp + 0x7f8]
push ecx
push str.NOOFPARTS
push edx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
push ebx
add eax, 0x1754
push eax
push str.ETAG
push ecx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov eax, dword [esp + 0x1c]
add eax, 0x1000
push eax
mov dword [esp + 0x20], eax
call fcn.004123b0
cmp dword [0x467bb4], 0
mov dword [esp + 0x18], 0
jbe 0x4110b1
xor edx, edx
push 0xc6
push edx
lea eax, [esp + 0x736]
push eax
mov word [esp + 0x738], dx
call fcn.00437170
add esp, 0xc
cmp dword [esp + 0x18], 0
jne 0x410e8e
mov ecx, dword [esp + 0x28]
push ecx
lea edx, [esi + 0x45c]
push 0x104
push edx
call fcn.0043349d
mov eax, dword [esp + 0x3c]
add esp, 0xc
push eax
lea ecx, [esi + 0x254]
push 0x104
push ecx
call fcn.0043349d
mov ecx, dword [0x467bb4]
xor eax, eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x38], eax
mov eax, dword [esp + 0x2c]
xor edx, edx
div ecx
mov edx, dword [esp + 0x28]
add esp, 0xc
push esi
push edx
mov dword [esi + 0x40], ecx
mov dword [esi + 0x24], 1
dec eax
mov dword [esi + 0x3c], eax
inc eax
mov dword [esi + 0x30], eax
call fcn.00412a90
mov eax, dword [esi + 0x30]
push eax
lea ecx, [esp + 0x7f8]
push 0x458740
push ecx
call edi
mov edx, dword [0x467bb4]
add esp, 0xc
push 0
push edx
lea eax, [esp + 0x734]
push str.PARTS__ld__ld_ASSIGNEDSIZE
push eax
call edi
mov eax, dword [esp + 0x24]
add esp, 0x10
push ebx
lea ecx, [esp + 0x7f8]
push ecx
lea edx, [esp + 0x734]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [esi + 0x38]
push ecx
lea edx, [esp + 0x7f8]
push 0x458740
push edx
call edi
mov eax, dword [0x467bb4]
add esp, 0xc
push 0
push eax
lea ecx, [esp + 0x734]
push str.PARTS__ld__ld_BYTERANGESTART
push ecx
call edi
mov ecx, dword [esp + 0x24]
add esp, 0x10
push ebx
lea edx, [esp + 0x7f8]
push edx
lea eax, [esp + 0x734]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov edx, dword [esi + 0x3c]
push edx
push 0x458740
lea eax, [esp + 0x7fc]
push eax
call edi
mov ecx, dword [0x467bb4]
add esp, 0xc
push 0
push ecx
lea edx, [esp + 0x734]
push str.PARTS__ld__ld_BYTERANGEEND
push edx
call edi
mov edx, dword [esp + 0x24]
add esp, 0x10
push ebx
lea eax, [esp + 0x7f8]
push eax
lea ecx, [esp + 0x734]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x41109c
push 0xc00
call fcn.00415923
add esp, 4
mov dword [esp + 0x38], eax
mov dword [esp + 0xa10], 1
test eax, eax
je 0x410eb8
push eax
call fcn.0040fa10
mov esi, eax
jmp 0x410eba
xor esi, esi
mov eax, dword [esp + 0x34]
mov dword [esp + 0xa10], 0xffffffff
mov ecx, dword [eax + 4]
mov dword [esi + 0xbec], ecx
mov edx, dword [eax + 8]
mov ecx, dword [0x467bb4]
mov eax, dword [esp + 0x18]
mov dword [esi + 0xbf0], edx
lea edx, [ecx - 1]
mov dword [esi + 0x44], eax
cmp eax, edx
mov eax, dword [esp + 0x20]
mov byte [esi + 0xbf8], 1
mov dword [esi + 0x40], ecx
mov dword [esi + 0x24], 1
jne 0x410f20
xor edx, edx
div ecx
mov ecx, dword [esp + 0x20]
dec ecx
mov dword [esi + 0x3c], ecx
imul eax, dword [esp + 0x18]
sub ecx, eax
inc ecx
mov dword [esi + 0x38], eax
mov dword [esi + 0x30], ecx
jmp 0x410f40
xor edx, edx
div ecx
mov edx, dword [esp + 0x18]
mov ecx, eax
imul ecx, edx
inc edx
imul edx, eax
lea eax, [edx - 1]
mov dword [esi + 0x3c], eax
sub eax, ecx
inc eax
mov dword [esi + 0x38], ecx
mov dword [esi + 0x30], eax
mov eax, dword [esp + 0x28]
push eax
lea ecx, [esi + 0x45c]
push 0x104
push ecx
call fcn.0043349d
mov edx, dword [esp + 0x3c]
add esp, 0xc
push edx
lea eax, [esi + 0x254]
push 0x104
push eax
call fcn.0043349d
add esp, 0xc
push 0x6ec
lea ecx, [esp + 0x44]
push 0
push ecx
mov dword [esp + 0x48], 0
call fcn.00437170
add esp, 0xc
lea edx, [esp + 0x3c]
push edx
mov edx, dword [esp + 0x28]
mov ecx, esi
call fcn.0040fbe0
mov eax, dword [esp + 0x1c]
push esi
push eax
call fcn.00412a90
mov ecx, dword [esi + 0x30]
push ecx
lea edx, [esp + 0x7f8]
push 0x458740
push edx
call edi
mov eax, dword [esp + 0x24]
mov ecx, dword [0x467bb4]
add esp, 0xc
push eax
push ecx
lea edx, [esp + 0x734]
push str.PARTS__ld__ld_ASSIGNEDSIZE
push edx
call edi
mov edx, dword [esp + 0x24]
add esp, 0x10
push ebx
lea eax, [esp + 0x7f8]
push eax
lea ecx, [esp + 0x734]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov eax, dword [esi + 0x38]
push eax
lea ecx, [esp + 0x7f8]
push 0x458740
push ecx
call edi
mov edx, dword [esp + 0x24]
mov eax, dword [0x467bb4]
add esp, 0xc
push edx
push eax
lea ecx, [esp + 0x734]
push str.PARTS__ld__ld_BYTERANGESTART
push ecx
call edi
mov ecx, dword [esp + 0x24]
add esp, 0x10
push ebx
lea edx, [esp + 0x7f8]
push edx
lea eax, [esp + 0x734]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov edx, dword [esi + 0x3c]
push edx
push 0x458740
lea eax, [esp + 0x7fc]
push eax
call edi
mov ecx, dword [esp + 0x24]
mov edx, dword [0x467bb4]
add esp, 0xc
push ecx
push edx
lea eax, [esp + 0x734]
push str.PARTS__ld__ld_BYTERANGEEND
push eax
call edi
mov eax, dword [esp + 0x24]
add esp, 0x10
push ebx
lea ecx, [esp + 0x7f8]
push ecx
lea edx, [esp + 0x734]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [0x467bb4]
jb 0x410d13
mov eax, dword [esp + 0x1c]
call fcn.00412810
mov al, 1
mov ecx, dword [esp + 0xa08]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x9f0]
xor ecx, esp
call fcn.004331c4
mov esp, ebp
pop ebp
ret 4