Function at 0x41c850
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4cf48f
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push esi
mov esi, dword [0x501efc]
push edi
test esi, esi
jne 0x41c8a6
push 0x58
call fcn.0042400f
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], esi
test eax, eax
je 0x41c897
mov ecx, eax
call fcn.00421c50
mov esi, eax
jmp 0x41c899
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov dword [0x501efc], esi
push 0x4d5a18
push str._s_File_Check
push 1
push 0x16c
call fcn.00423ab0
add esp, 0x10
mov ecx, esi
push 1
push str.patcher_files_version_tmp
push 0x4d5a18
push 0x4d374c
call fcn.00422ab0
test al, al
jne 0x41c989
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x10], esp
push str.patcher_files_version_tmp
call fcn.00403840
mov dword [ebp - 4], 1
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x18], esp
push 0x7e
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push str.if___downloader__download__L__kServerSidePatcherFilesVersionInfoFileNameW__kClientSideTempPatcherFilesVersionInfoFileNameW____
mov byte [ecx], 0
call fcn.00409400
mov byte [ebp - 4], 2
push 0
push 0x50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call fcn.0041a8e0
mov dword [ebp - 4], 3
lea eax, [ebp - 0x64]
push eax
push 5
call fcn.00406d70
add esp, 8
push 0
push 0x4d5a18
push 0x5c
call fcn.00419de0
add esp, 4
push eax
push dword [0x501ef8]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call fcn.00404760
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
call fcn.0041c330
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 6
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
call fcn.0041c330
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 9
push str.patcher_files_version_tmp
push str._s_File_Check
push 1
push 0x17b
call fcn.00423ab0
lea eax, [ebp - 0x24]
push eax
push str.patcher_files_version_tmp
call fcn.0041f5e0
add esp, 0x18
test al, al
jne 0x41ca52
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x18], esp
push str.patcher_files_version_tmp
call fcn.00403840
mov byte [ebp - 4], 0xa
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x10], esp
push str.if___parsePatcherFileInfo_kClientSideTempPatcherFilesVersionInfoFileNameW___server_files__
call fcn.004037e0
mov byte [ebp - 4], 0xb
push 0
push 0x50
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x64]
call fcn.0041a8e0
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x64]
push eax
push 5
call fcn.00406d70
add esp, 8
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x64]
call fcn.00404760
xor bl, bl
jmp 0x41cb6d
push 0x4d5a18
push str._s_File_Check
push 1
push 0x186
call fcn.00423ab0
lea eax, [ebp - 0x2c]
push eax
push 0x4d5a18
call fcn.0041f5e0
mov eax, dword [ebp - 0x24]
add esp, 0x18
mov esi, dword [eax]
cmp esi, eax
je 0x41cb6b
mov edi, dword [ebp + 8]
nop dword [eax]
lea ebx, [esi + 0x10]
push ebx
lea ecx, [ebp - 0x2c]
call fcn.0041a3f0
cmp eax, dword [ebp - 0x2c]
je 0x41cb17
cmp dword [eax + 0x24], 8
jb 0x41caac
mov edx, dword [eax + 0x10]
jmp 0x41caaf
lea edx, [eax + 0x10]
cmp dword [ebx + 0x14], 8
jb 0x41cab9
mov ecx, dword [ebx]
jmp 0x41cabb
mov ecx, ebx
push dword [eax + 0x20]
push edx
push dword [ebx + 0x10]
push ecx
call fcn.00416440
add esp, 0x10
test eax, eax
js 0x41cb17
push ebx
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0041a590
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
push ebx
push eax
lea ecx, [ebp - 0x24]
call fcn.0041a590
mov eax, dword [ebp - 0x14]
mov ecx, dword [edi + 0x28]
cmp ecx, dword [eax + 0x28]
jae 0x41cafc
mov edi, dword [ebp + 8]
jmp 0x41cb17
cmp dword [ebx + 0x14], 8
jb 0x41cb06
mov eax, dword [ebx]
jmp 0x41cb08
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, dword [ebp + 8]
cmp eax, 0xffffffff
jne 0x41cb1f
push ebx
mov ecx, edi
call fcn.0041fba0
cmp byte [esi + 0xd], 0
jne 0x41cb62
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x41cb44
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x41cb62
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x41cb38
jmp 0x41cb62
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x41cb60
nop dword [eax]
cmp esi, dword [eax + 8]
jne 0x41cb60
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x41cb50
mov esi, eax
cmp esi, dword [ebp - 0x24]
jne 0x41ca90
mov bl, 1
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x24]
mov eax, dword [ebp - 0x24]
push eax
push dword [eax]
lea eax, [ebp - 0x18]
push eax
call fcn.00418060
mov byte [ebp - 4], 6
push dword [ebp - 0x24]
call fcn.0042400a
add esp, 4
mov dword [ebp - 4], 0x10
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x2c]
push eax
push dword [eax]
lea eax, [ebp - 0x18]
push eax
call fcn.00418060
mov dword [ebp - 4], 0xffffffff
push dword [ebp - 0x2c]
call fcn.0042400a
mov ecx, dword [ebp - 0xc]
add esp, 4
mov al, bl
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret