Function at 0x479d10
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5a0796
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x61e810]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push esi
push edi
mov eax, dword [0x61e810]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x24]
mov edi, ecx
push 0x60b170
push eax
mov dword [esp + 0x28], edi
call fcn.004466c0
add esp, 0xc
mov ebx, eax
xor eax, eax
mov dword [esp + 0xa0], eax
mov ecx, dword [edi + 8]
xor edx, edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], eax
mov word [esp + 0x58], dx
push 0x60b3b4
mov byte [esp + 0xa4], 1
call fcn.0048aa3a
add esp, 4
mov ecx, 0x60b3b4
lea esi, [esp + 0x58]
call fcn.00401741
push 0
call fcn.0048a761
add esp, 4
push edx
push eax
lea esi, [esp + 0x7c]
call fcn.00449ae0
add esp, 8
mov edx, 8
mov byte [esp + 0xa0], 2
cmp dword [ebx + 0x14], edx
jb 0x479de4
mov ebx, dword [ebx]
mov ecx, dword [esp + 0x58]
cmp dword [esp + 0x6c], edx
jae 0x479df2
lea ecx, [esp + 0x58]
cmp dword [eax + 0x14], edx
jb 0x479df9
mov eax, dword [eax]
push ebx
push ecx
push eax
lea eax, [esp + 0x48]
push str.__s____s___s
push eax
call fcn.004466c0
add esp, 0x14
mov ebx, dword [esp + 0x14]
mov byte [esp + 0xa0], 3
mov esi, dword [ebx + 4]
mov ecx, dword [esi + 4]
push eax
push ecx
push esi
call fcn.0041121b
mov ecx, dword [ebx + 8]
mov edx, 0x9249248
sub edx, ecx
cmp edx, 1
jae 0x479e41
push str.list_T__too_long
call fcn.004890a5
inc ecx
mov dword [ebx + 8], ecx
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
mov esi, 8
mov dword [ecx], eax
cmp dword [esp + 0x50], esi
jb 0x479e65
mov eax, dword [esp + 0x3c]
push eax
call fcn.0048a131
add esp, 4
xor ebx, ebx
xor ecx, ecx
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], cx
cmp dword [esp + 0x88], esi
jb 0x479e90
mov edx, dword [esp + 0x74]
push edx
call fcn.0048a131
add esp, 4
cmp dword [esp + 0x6c], esi
jb 0x479ea3
mov eax, dword [esp + 0x58]
push eax
call fcn.0048a131
add esp, 4
mov dword [esp + 0xa0], 0xffffffff
cmp dword [esp + 0x34], esi
jb 0x479ec1
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0048a131
add esp, 4
xor edx, edx
cmp dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
setne dl
inc edx
mov dword [edi + 0x1b8], edx
call fcn.004753c0
mov eax, dword [edi + 8]
mov byte [eax + 0x3d], 1
mov ecx, dword [edi + 8]
call fcn.0047c0c0
cmp dword [esp + 0x18], ebx
jne 0x47a0dc
mov esi, dword [esp + 0x1c]
lea ebx, [esp + 0x3c]
call fcn.0046e970
lea ebx, [esp + 0x20]
mov ecx, esi
mov dword [esp + 0xa0], 4
call fcn.004710a0
lea ecx, [esp + 0x3c]
push 0xa
push ecx
mov ecx, eax
mov byte [esp + 0xa8], 5
call fcn.0044bbc0
add esp, 8
test al, al
mov edi, 8
sete bl
mov byte [esp + 0xa0], 4
cmp dword [esp + 0x34], edi
jb 0x479f54
mov edx, dword [esp + 0x20]
push edx
call fcn.0048a131
add esp, 4
test bl, bl
je 0x47a026
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [esp + 0x14], ebx
cmp ebx, 2
jne 0x479f81
mov ecx, esi
call fcn.0047a350
mov dword [esp + 0x14], 0
jmp 0x47a02d
test byte [0x63221c], 1
jne 0x479fb3
or dword [0x63221c], 1
mov byte [esp + 0xa0], 6
call fcn.00403203
push 0x5ac41a
call fcn.0048ae63
add esp, 4
mov byte [esp + 0xa0], 4
mov eax, dword [0x632220]
mov ecx, dword [eax + 8]
push ebx
push 0x60b18c
push str.DownloadTask.cpp
push 0x3fe
push 0
push 0x632220
call ecx
add esp, 0x18
test byte [0x6321f0], 1
jne 0x47a009
or dword [0x6321f0], 1
mov byte [esp + 0xa0], 7
call fcn.004032de
push 0x5ac42e
call fcn.0048ae63
add esp, 4
mov byte [esp + 0xa0], 4
mov edx, dword [0x6321f4]
mov eax, dword [edx + 4]
push ebx
push 0x60b18c
push 0
push 0x6321f4
call eax
add esp, 0x10
jmp 0x47a02d
mov ecx, esi
call fcn.0047a350
mov dword [esp + 0xa0], 0xffffffff
cmp dword [esp + 0x50], edi
jb 0x47a04b
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.0048a131
add esp, 4
mov edi, dword [esp + 0x1c]
xor ebx, ebx
lea esi, [ebx + 8]
mov edx, dword [edi + 0x20]
or edx, dword [edi + 0x24]
je 0x47a06f
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [edi + 0x10]
push eax
mov eax, dword [edi + 0x20]
push ecx
push edx
call eax
test byte [0x63221c], 1
jne 0x47a13d
mov edi, 1
or dword [0x63221c], edi
mov dword [esp + 0xa0], esi
push 0x632228
mov dword [0x632220], 0x5fd2f0
mov dword [0x632224], ebx
mov dword [0x632240], ebx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [esp + 0xa0], 9
push esi
mov dword [0x632220], 0x5fd330
call fcn.0048a378
add esp, 4
cmp eax, ebx
je 0x47a0e9
mov dword [eax], 0xffffffff
mov byte [eax + 4], 1
mov esi, eax
jmp 0x47a0eb
mov dword [esp + 0x14], 3
jmp 0x47a054
xor esi, esi
push 0x632228
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x632224]
add dword [0x632240], edi
cmp eax, ebx
je 0x47a10e
push eax
call fcn.0048a131
add esp, 4
sub dword [0x632240], edi
push 0x632228
mov dword [0x632224], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x5ac41a
call fcn.0048ae63
add esp, 4
mov dword [esp + 0xa0], 0xffffffff
mov esi, dword [esp + 0x1c]
lea ebx, [esp + 0x20]
call fcn.0046e970
mov esi, 8
mov dword [esp + 0xa0], 0xa
cmp dword [eax + 0x14], esi
jb 0x47a161
mov eax, dword [eax]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ecx
push edx
push eax
mov eax, dword [0x632220]
mov ecx, dword [eax + 8]
push str.task:_s_OnTaskCompleted:et__d_ec__d
push str.DownloadTask.cpp
push 0x411
xor ebx, ebx
push ebx
push 0x632220
call ecx
or edi, 0xffffffff
add esp, 0x20
mov dword [esp + 0xa0], edi
cmp dword [esp + 0x34], esi
jb 0x47a1ad
mov edx, dword [esp + 0x20]
push edx
call fcn.0048a131
add esp, 4
test byte [0x6321f0], 1
jne 0x47a26d
or dword [0x6321f0], 1
mov dword [esp + 0xa0], 0xb
push 0x6321fc
mov dword [0x6321f4], 0x5fd2f0
mov dword [0x6321f8], ebx
mov dword [0x632214], ebx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [esp + 0xa0], 0xc
push esi
mov dword [0x6321f4], 0x5fd310
mov byte [0x632218], 1
call fcn.0048a378
add esp, 4
cmp eax, ebx
je 0x47a21d
mov dword [eax], edi
mov byte [eax + 4], 1
mov esi, eax
jmp 0x47a21f
xor esi, esi
push 0x6321fc
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x6321f8]
inc dword [0x632214]
cmp eax, ebx
je 0x47a242
push eax
call fcn.0048a131
add esp, 4
dec dword [0x632214]
push 0x6321fc
mov dword [0x6321f8], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x5ac42e
call fcn.0048ae63
add esp, 4
mov dword [esp + 0xa0], edi
mov esi, dword [esp + 0x1c]
lea ebx, [esp + 0x20]
call fcn.0046e970
mov esi, 8
mov dword [esp + 0xa0], 0xd
cmp dword [eax + 0x14], esi
jb 0x47a291
mov eax, dword [eax]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ecx
push edx
push eax
mov eax, dword [0x6321f4]
mov ecx, dword [eax + 4]
push str.task:_s_OnTaskCompleted:et__d_ec__d
push 0
push 0x6321f4
call ecx
add esp, 0x18
mov dword [esp + 0xa0], edi
cmp dword [esp + 0x34], esi
jb 0x47a2cf
mov edx, dword [esp + 0x20]
push edx
call fcn.0048a131
add esp, 4
mov ebx, 1
test byte [0x634d3c], bl
jne 0x47a306
or dword [0x634d3c], ebx
mov dword [esp + 0xa0], 0xe
call fcn.0046ea00
push 0x5acb60
call fcn.0048ae63
add esp, 4
mov dword [esp + 0xa0], edi
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
mov edi, 0x634d44
call fcn.00470540
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
mov eax, dword [edx]
push ebx
call eax
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.00489dc1
mov esp, ebp
pop ebp
ret 4