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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45caf1
mov eax, dword fs:[0]
push eax
sub esp, 0x840
mov eax, dword [0x483ca0]
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 edi, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x844]
push eax
lea eax, [ebp - 0x848]
mov dword [ebp - 0x844], 0
push eax
push str.starter.cfg
mov dword [ebp - 0x848], 0
call fcn.0040c070
add esp, 0xc
cmp dword [ebp - 0x844], 0
je 0x406269
push 0x200
lea eax, [ebp - 0x810]
push eax
push 0x460828
push str..zip
sub esp, 0x18
mov ecx, esp
push 0xc
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push str.PCClient.zip
mov byte [ecx], 0
call fcn.00401eb7
lea eax, [ebp - 0x840]
push eax
call fcn.0040da70
add esp, 0x24
cmp dword [eax + 0x14], 0x10
mov dword [ebp - 4], 0
jb 0x406105
mov eax, dword [eax]
push eax
call fcn.0040fa60
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x82c], 0x10
jb 0x40612c
push dword [ebp - 0x840]
call fcn.004167f4
add esp, 4
push 0x200
lea eax, [ebp - 0x410]
push eax
push 0x460828
push str..zip
sub esp, 0x18
mov ecx, esp
push 0x15
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push str.PCClientAccessory.zip
mov byte [ecx], 0
call fcn.00401eb7
lea eax, [ebp - 0x840]
push eax
call fcn.0040da70
add esp, 0x24
cmp dword [eax + 0x14], 0x10
mov dword [ebp - 4], 1
jb 0x406182
mov eax, dword [eax]
push eax
call fcn.0040fa60
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x82c], 0x10
jb 0x4061a9
push dword [ebp - 0x840]
call fcn.004167f4
add esp, 4
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea eax, [ebp - 0x810]
push eax
call ebx
cmp eax, 0xffffffff
je 0x4061f6
lea eax, [ebp - 0x410]
push eax
call ebx
cmp eax, 0xffffffff
je 0x4061f6
push str.both_client_files_are_available
push 0x486
push str.SetupHandler.cpp
push 0
push str.SetupHandler::LoadSetupConfigure
push dword [0x4868e8]
call fcn.0040a4c0
add esp, 0x18
mov byte [edi + 0x302d], 1
mov ecx, dword [ebp - 0x844]
mov eax, dword [ebp - 0x848]
push 0x463128
mov byte [eax + ecx], 0
push dword [ebp - 0x844]
call fcn.0040b910
mov ecx, dword [ebp - 0x844]
add esp, 8
sub esi, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [esi + ecx - 1], al
test al, al
jne 0x406221
push str.starter.cfg
push str.Loaded__s_successfully
push 0x48f
push str.SetupHandler.cpp
push 0
push str.SetupHandler::LoadSetupConfigure
push dword [0x4868e8]
call fcn.0040a4c0
push dword [ebp - 0x844]
call fcn.004167f4
add esp, 0x20
mov al, 1
jmp 0x4063b6
push str..txt
push str..cfg
sub esp, 0x18
mov ecx, esp
push 0xb
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push str.starter.cfg
mov byte [ecx], 0
call fcn.00401eb7
lea eax, [ebp - 0x828]
push eax
call fcn.0040da70
cmp dword [ebp - 0x814], 0x10
lea ecx, [ebp - 0x844]
push ecx
lea ecx, [ebp - 0x848]
mov dword [ebp - 4], 2
lea eax, [ebp - 0x828]
cmovae eax, dword [ebp - 0x828]
push ecx
push eax
call fcn.0040c070
mov ecx, dword [ebp - 0x844]
add esp, 0x30
test ecx, ecx
je 0x406349
mov eax, dword [ebp - 0x848]
mov byte [eax + ecx], 0
mov ecx, dword [ebp - 0x844]
sub esi, ecx
nop
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x4062f0
cmp dword [ebp - 0x814], 0x10
mov byte [edi + 0x302d], al
lea eax, [ebp - 0x828]
cmovae eax, dword [ebp - 0x828]
push eax
push str.Loaded__s_successfully
push 0x4a0
push str.SetupHandler.cpp
push 0
push str.SetupHandler::LoadSetupConfigure
push dword [0x4868e8]
call fcn.0040a4c0
push dword [ebp - 0x844]
call fcn.004167f4
add esp, 0x20
jmp 0x40639b
lea esi, [edi + 0x2029]
push str.__called_by_downloader
push esi
call fcn.00439380
add esp, 8
test eax, eax
jne 0x406377
push str.__called_by_client_to_sync
push esi
call fcn.00439380
add esp, 8
test eax, eax
jne 0x406377
xor bl, bl
jmp 0x40639d
push str.Delay_to_load_setting
push 0x4b4
push str.SetupHandler.cpp
push 0
push str.SetupHandler::LoadSetupConfigure
push dword [0x4868e8]
call fcn.0040a4c0
add esp, 0x18
mov bl, 1
cmp dword [ebp - 0x814], 0x10
jb 0x4063b4
push dword [ebp - 0x828]
call fcn.004167f4
add esp, 4
mov al, bl
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.004396df
mov esp, ebp
pop ebp
ret 4