Function at 0x46f780
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6331a1
mov eax, dword fs:[0]
push eax
sub esp, 0x188
mov eax, dword [0x6a73e8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46fad1
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x46f7d0
mov eax, dword [esi]
xor ebx, ebx
mov dword [esi + 0x10], 0
mov byte [eax], 0
mov dword [ebp - 4], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], bl
mov ecx, edi
mov byte [ebp - 4], 1
xor eax, eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46f805
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x2c]
call fcn.0040bab0
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00457b10
add esp, 8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00407bd0
cmp dword [ebp - 0x34], 0
je 0x46fa97
lea eax, [ebp - 0x48]
push eax
call fcn.00455ef0
add esp, 4
push dword [eax]
lea ecx, [ebp - 0x194]
mov byte [ebp - 4], 3
call fcn.0046cae0
mov edx, dword [eax]
mov ecx, edx
mov byte [ebp - 4], 4
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46f882
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.0040b9b0
mov eax, dword [ebp - 0x194]
lea ecx, [ebp - 0x190]
cmp eax, ecx
je 0x46f8ae
push eax
call fcn.005ffbb1
add esp, 4
mov edx, dword [ebp - 0x48]
or eax, 0xffffffff
mov byte [ebp - 4], 7
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46f8cd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x1c], 0
jne 0x46f8e2
push 0x20
push str.89F91A98B0DF4A1C8E5FA022201E3CCA
lea ecx, [ebp - 0x2c]
call fcn.0040b9b0
push esi
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.004a0ce0
add esp, 0xc
test eax, eax
je 0x46fa8f
call fcn.00487510
mov ecx, eax
push 1
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x46f9c6
push 0x46
push str.d:jenkins.jenkinsworkspacemgame_aichat_aichat_mainuserdatamgr.cpp
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], 0xf
mov byte [ebp - 0x78], al
call fcn.0040b9b0
push 3
push 0x63fdb8
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 8
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], 0
call fcn.0040b9b0
push 0x2e
lea eax, [ebp - 0x78]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x110]
call fcn.004073a0
mov edi, eax
push str.file_data:
push edi
mov byte [ebp - 4], 0xa
call fcn.004082d0
add esp, 8
lea eax, [ebp - 0x44]
cmp dword [ebp - 0x30], 0x10
cmovae eax, dword [ebp - 0x44]
push eax
push edi
call fcn.004082d0
add esp, 8
call fcn.00487510
mov ecx, eax
push edi
mov eax, dword [ecx]
call dword [eax + 0x1c]
lea ecx, [ebp - 0x110]
call fcn.004083f0
lea ecx, [ebp - 0x60]
call fcn.00407b80
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 7
call fcn.00407b80
call fcn.00487510
mov ecx, eax
push 1
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x46fa8a
push 0x46
push str.d:jenkins.jenkinsworkspacemgame_aichat_aichat_mainuserdatamgr.cpp
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], al
call fcn.0040b9b0
push 3
push 0x63fdb8
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0xf
mov byte [ebp - 0x78], 0
call fcn.0040b9b0
push 0x2f
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x110]
call fcn.004073a0
mov edi, eax
push str.strcon:
push edi
mov byte [ebp - 4], 0xd
call fcn.004082d0
add esp, 8
cmp dword [esi + 0x14], 0x10
jb 0x46fa58
mov esi, dword [esi]
push esi
push edi
call fcn.004082d0
add esp, 8
call fcn.00487510
mov ecx, eax
push edi
mov eax, dword [ecx]
call dword [eax + 0x1c]
lea ecx, [ebp - 0x110]
call fcn.004083f0
lea ecx, [ebp - 0x78]
call fcn.00407b80
lea ecx, [ebp - 0x60]
call fcn.00407b80
mov ebx, 1
lea ecx, [ebp - 0x2c]
call fcn.00407b80
mov edx, dword [ebp - 0x30]
cmp edx, 0x10
jb 0x46fac7
mov ecx, dword [ebp - 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x46fabd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46faef
push edx
push ecx
call fcn.005bb0db
add esp, 8
mov eax, ebx
jmp 0x46fad3
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005bb391
mov esp, ebp
pop ebp
ret
call fcn.005ffa79
int3