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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x475e01
mov eax, dword fs:[0]
push eax
sub esp, 0x840
mov eax, dword [0x4a6c44]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, 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.00412230
add esp, 0xc
cmp dword [ebp - 0x844], 0
je 0x40ab58
push 0x200
lea eax, [ebp - 0x410]
push eax
push 0x47b918
push str..zip
sub esp, 0x18
mov ecx, esp
push 0xc
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
push str.PCClient.zip
mov byte [ecx], 0
call fcn.00401d51
lea eax, [ebp - 0x840]
push eax
call fcn.00414410
add esp, 0x24
cmp dword [eax + 0x14], 0x10
mov dword [ebp - 4], 0
jb 0x40a9a4
mov eax, dword [eax]
push eax
call fcn.00416680
mov edx, dword [ebp - 0x82c]
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
cmp edx, 0x10
jb 0x40a9ee
mov ecx, dword [ebp - 0x840]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a9e4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ace2
push edx
push ecx
call fcn.00443caf
add esp, 8
push 0x200
lea eax, [ebp - 0x810]
push eax
push 0x47b918
push str..zip
sub esp, 0x18
mov ecx, esp
push 0x15
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
push str.PCClientAccessory.zip
mov byte [ecx], 0
call fcn.00401d51
lea eax, [ebp - 0x840]
push eax
call fcn.00414410
add esp, 0x24
cmp dword [eax + 0x14], 0x10
mov dword [ebp - 4], 1
jb 0x40aa44
mov eax, dword [eax]
push eax
call fcn.00416680
mov edx, dword [ebp - 0x82c]
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
cmp edx, 0x10
jb 0x40aa8e
mov ecx, dword [ebp - 0x840]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40aa84
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ace7
push edx
push ecx
call fcn.00443caf
add esp, 8
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40aadd
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40aadd
push str.both_client_files_are_available
push 0x51b
push str.c:_rhub2code_setuphandler_setuphandler.cpp
push 0
push str.SetupHandler::LoadSetupConfigure
push dword [0x4a9068]
call fcn.0040eee0
add esp, 0x18
mov byte [ebx + 0x482d], 1
mov ecx, dword [ebp - 0x844]
mov eax, dword [ebp - 0x848]
push 0x47e60c
mov byte [eax + ecx], 0
push dword [ebp - 0x844]
call fcn.00411ae0
mov ecx, dword [ebp - 0x844]
add esp, 8
sub esi, ecx
nop dword [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [esi + ecx - 1], al
test al, al
jne 0x40ab10
push str.starter.cfg
push str.Loaded__s_successfully
push 0x524
push str.c:_rhub2code_setuphandler_setuphandler.cpp
push 0
push str.SetupHandler::LoadSetupConfigure
push dword [0x4a9068]
call fcn.0040eee0
push dword [ebp - 0x844]
call fcn.0041d9ba
add esp, 0x20
mov al, 1
jmp 0x40acc5
push str..txt
push str..cfg
sub esp, 0x18
mov ecx, esp
push 0xb
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
push str.starter.cfg
mov byte [ecx], 0
call fcn.00401d51
lea eax, [ebp - 0x828]
push eax
call fcn.00414410
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.00412230
mov ecx, dword [ebp - 0x844]
add esp, 0x30
test ecx, ecx
je 0x40ac39
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 0x40abe0
cmp dword [ebp - 0x814], 0x10
mov byte [ebx + 0x482d], al
lea eax, [ebp - 0x828]
cmovae eax, dword [ebp - 0x828]
push eax
push str.Loaded__s_successfully
push 0x535
push str.c:_rhub2code_setuphandler_setuphandler.cpp
push 0
push str.SetupHandler::LoadSetupConfigure
push dword [0x4a9068]
call fcn.0040eee0
push dword [ebp - 0x844]
call fcn.0041d9ba
add esp, 0x20
jmp 0x40ac8b
lea esi, [ebx + 0x3829]
push str.__called_by_downloader
push esi
call fcn.004472c0
add esp, 8
test eax, eax
jne 0x40ac67
push str.__called_by_client_to_sync
push esi
call fcn.004472c0
add esp, 8
test eax, eax
jne 0x40ac67
xor bl, bl
jmp 0x40ac8d
push str.Delay_to_load_setting
push 0x549
push str.c:_rhub2code_setuphandler_setuphandler.cpp
push 0
push str.SetupHandler::LoadSetupConfigure
push dword [0x4a9068]
call fcn.0040eee0
add esp, 0x18
mov bl, 1
mov edx, dword [ebp - 0x814]
cmp edx, 0x10
jb 0x40acc3
mov ecx, dword [ebp - 0x828]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40acb9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40acec
push edx
push ecx
call fcn.00443caf
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00444138
mov esp, ebp
pop ebp
ret 4
call fcn.0044a823
call fcn.0044a823
call fcn.0044a823
int3