Function at 0x47509e
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x52785c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push edi
lea ebx, [esi + 4]
push dword [ebx]
push dword [esi + 0xc]
push str.CDownloadMgr2::DoStartDownloadByID
push 0x54737c
call fcn.00433393
mov eax, dword [ebp + 8]
and dword [esp + 0x1c], 0
add esp, 0x10
push 0
push dword [ebx]
call fcn.0047922d
mov edi, eax
test edi, edi
jne 0x47512e
push 0x38a0
call fcn.004ea1a3
pop ecx
mov edi, eax
mov dword [eax + 0x3888], 1
call fcn.00471cf8
mov edi, eax
test edi, edi
je 0x475358
push ebx
mov ebx, dword [ebp + 8]
add ebx, 0x84
call fcn.00449ca8
mov dword [eax], edi
mov dword [esp + 0xc], 1
mov eax, dword [esi + 0x24]
mov dword [edi + 0x2918], eax
mov eax, dword [esi + 4]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [edi + 8], eax
mov eax, dword [esi + 0x18]
mov dword [edi + 0x10], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0x31e4], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 0x3824], eax
mov eax, dword [esi + 0x44]
mov dword [edi + 0x33f8], eax
mov eax, dword [esi + 0x48]
mov dword [edi + 0x33fc], eax
mov eax, dword [esi + 0x50]
mov dword [edi + 0x382c], eax
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4751cd
push eax
call ebx
test eax, eax
jle 0x4751cd
push dword [esi + 0xc]
lea ecx, [esp + 0xc]
call fcn.00401f01
and dword [esp + 0x24], 0
push 0x54739c
lea eax, [esp + 0xc]
push eax
call fcn.004048f2
test eax, eax
je 0x4751bc
mov edx, dword [esi + 0xc]
lea eax, [edi + 0x82c]
push eax
mov eax, 0x208
call section..text
or dword [esp + 0x24], 0xffffffff
mov ecx, dword [esp + 8]
add ecx, 0xfffffff0
call fcn.0040297c
mov eax, dword [esi + 0x28]
test eax, eax
je 0x4751ef
push eax
call ebx
test eax, eax
jle 0x4751ef
mov edx, dword [esi + 0x28]
lea eax, [edi + 0x210c]
push eax
mov eax, 0x800
call section..text
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x475211
push eax
call ebx
test eax, eax
jle 0x475211
mov edx, dword [esi + 0x1c]
lea eax, [edi + 0x311c]
push eax
mov eax, 0xc8
call section..text
mov eax, dword [esi + 0x34]
test eax, eax
je 0x475233
push eax
call ebx
test eax, eax
jle 0x475233
mov edx, dword [esi + 0x34]
lea eax, [edi + 0x31f0]
push eax
mov eax, 0x208
call section..text
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x475255
push eax
call ebx
test eax, eax
jle 0x475255
mov edx, dword [esi + 0x4c]
lea eax, [edi + 0xe20]
push eax
mov eax, 0xc8
call section..text
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x475277
push eax
call ebx
test eax, eax
jle 0x475277
mov edx, dword [esi + 0x3c]
lea eax, [edi + 0xee8]
push eax
mov eax, 0x800
call section..text
mov eax, dword [esi + 0x40]
test eax, eax
je 0x475299
push eax
call ebx
test eax, eax
jle 0x475299
mov edx, dword [esi + 0x40]
lea eax, [edi + 0x16e8]
push eax
mov eax, 0xc8
call section..text
cmp dword [ebp + 0xc], 0
je 0x4752f1
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x4752f1
push eax
call ebx
test eax, eax
jle 0x4752f1
mov edx, dword [esi + 0x5c]
lea eax, [edi + 0xafc]
push eax
mov eax, 0x208
call section..text
push dword [esi + 0x5c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4752f1
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push dword [esi + 0x5c]
call fcn.00401f01
call fcn.00488d90
pop ecx
mov ecx, dword [edi]
push eax
push edi
mov dword [esp + 0x1c], edx
call dword [ecx + 0x108]
and dword [edi + 0x28], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, ebx
mov dword [edi + 0x20e8], eax
mov dword [edi + 0x290c], ebx
mov dword [edi + 0x2910], ebx
mov eax, dword [esi + 8]
cmp eax, ebx
jbe 0x47531c
mov dword [edi + 0xe1c], eax
mov eax, dword [esi + 0x60]
mov dword [edi + 0x3844], eax
cmp dword [ebp + 0xc], ebx
jne 0x47532d
push ebx
jmp 0x47533b
lea eax, [edi + 0xafc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
push dword [ebp + 8]
mov eax, edi
call fcn.0047a3c0
cmp dword [esp + 0xc], ebx
je 0x475353
mov eax, dword [ebp + 8]
call fcn.0047afb5
xor eax, eax
inc eax
jmp 0x47535a
xor eax, eax
mov ecx, dword [esp + 0x1c]
pop edi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8