Function at 0x412650
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52c630
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x57d718]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x78], 0
call fcn.00429b60
mov edx, eax
mov dword [ebp - 0x60], 0
mov ecx, edx
mov dword [ebp - 0x5c], 7
xor eax, eax
mov word [ebp - 0x70], ax
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4126a7
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x70]
call fcn.0040c2a0
mov eax, dword [esi + 0x38]
mov dword [ebp - 4], 0
sub eax, 1
je 0x41290f
sub eax, 1
jne 0x412b05
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebp - 0x79]
call fcn.004109a0
mov edi, eax
cmp dword [ebp - 0x5c], 8
lea edx, [ebp - 0x70]
mov ecx, dword [edi + 0x10]
cmovae edx, dword [ebp - 0x70]
mov eax, dword [edi + 0x14]
mov esi, dword [ebp - 0x60]
sub eax, ecx
mov byte [ebp - 4], 8
mov dword [ebp - 0x88], edx
mov dword [ebp - 0x74], ecx
cmp esi, eax
ja 0x4127b7
cmp dword [edi + 0x14], 8
lea eax, [esi + ecx]
mov dword [edi + 0x10], eax
mov ecx, edi
mov dword [ebp - 0x84], edi
jb 0x412734
mov ecx, dword [edi]
mov dword [ebp - 0x84], ecx
lea eax, [esi + esi]
mov dword [ebp - 0x78], eax
add eax, edx
cmp eax, ecx
mov eax, dword [ebp - 0x74]
jbe 0x412761
add eax, eax
mov dword [ebp - 0x80], eax
add eax, ecx
cmp edx, eax
mov eax, dword [ebp - 0x80]
ja 0x412763
cmp ecx, edx
ja 0x412759
xor esi, esi
jmp 0x412763
mov esi, ecx
sub esi, edx
sar esi, 1
jmp 0x412763
add eax, eax
add eax, 2
mov dword [ebp - 0x74], esi
push eax
mov eax, dword [ebp - 0x78]
push ecx
add eax, ecx
push eax
call fcn.00500db0
add esi, esi
push esi
push dword [ebp - 0x88]
push dword [ebp - 0x84]
call fcn.00500820
mov edx, dword [ebp - 0x60]
mov eax, edx
mov ecx, dword [ebp - 0x74]
sub eax, ecx
add eax, eax
push eax
lea eax, [edx + ecx]
mov ecx, dword [ebp - 0x88]
lea eax, [ecx + eax*2]
push eax
mov eax, dword [ebp - 0x84]
add eax, esi
push eax
call fcn.00500820
add esp, 0x24
jmp 0x4127cc
push esi
push edx
push 0
mov byte [ebp - 0x78], 0
mov ecx, edi
push dword [ebp - 0x78]
push esi
call fcn.00410740
mov edi, eax
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 0
movups xmm0, xmmword [edi]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 0xa
call fcn.004086c0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x412902
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
test eax, eax
je 0x412902
call fcn.00434ec0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x412907
push 0x4c
push str.d:jenkins.jenkinsworkspacemgame_aichat_alchattray_fileintegritycheck.cpp
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], al
call fcn.0040c1a0
push 3
push 0x53a170
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
call fcn.0040c1a0
mov byte [ebp - 4], 0xc
call fcn.00434ec0
mov edi, eax
lea ecx, [ebp - 0x150]
push 0x87
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00407ba0
mov esi, eax
push str.69_dir_create_fail
push esi
mov byte [ebp - 4], 0xd
call fcn.00406e80
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x150]
call fcn.00408e00
lea ecx, [ebp - 0x58]
call fcn.00408670
lea ecx, [ebp - 0x40]
call fcn.00408670
lea ecx, [ebp - 0x28]
jmp 0x412b00
call fcn.00412170
lea ecx, [ebp - 0x28]
jmp 0x412b00
push esi
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.004102f0
push dword [esi + 0x1c]
cmp dword [ebp - 0x44], 8
lea ecx, [ebp - 0x58]
movzx eax, word [esi + 0x18]
cmovae ecx, dword [ebp - 0x58]
push eax
push ecx
mov byte [ebp - 4], 1
call fcn.0042a640
add esp, 0x18
test eax, eax
jne 0x412afd
add esi, 0x20
mov dword [ebp - 0x18], eax
lea edi, [esi + 0x10]
mov word [ebp - 0x28], ax
lea ecx, [ebp - 0x28]
mov eax, dword [edi]
add eax, 4
mov byte [ebp - 4], 2
push eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x78], 1
call fcn.00412f30
push 4
push str.rel_
lea ecx, [ebp - 0x28]
call fcn.00412d50
cmp dword [esi + 0x14], 8
jb 0x412989
mov esi, dword [esi]
push dword [edi]
lea ecx, [ebp - 0x28]
push esi
call fcn.00412d50
push 5
push str._fail
lea ecx, [ebp - 0x28]
call fcn.00412d50
mov dword [ebp - 0x30], 0
xor ecx, ecx
mov dword [ebp - 0x2c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x30], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.004086c0
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push 0
cmovae eax, dword [ebp - 0x40]
push 0
push 1
push 0
push eax
call fcn.00412000
mov ecx, eax
call fcn.00435c70
call fcn.00434ec0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x412af5
push 0x4c
push str.d:jenkins.jenkinsworkspacemgame_aichat_alchattray_fileintegritycheck.cpp
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x8c], 0xf
mov byte [ebp - 0xa0], al
call fcn.0040c1a0
push 3
push 0x53a170
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 5
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 0xf
mov byte [ebp - 0xb8], 0
call fcn.0040c1a0
mov byte [ebp - 4], 6
call fcn.00434ec0
mov edi, eax
lea ecx, [ebp - 0x150]
push 0x76
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.00407ba0
mov esi, eax
cmp dword [ebp - 0x44], 8
lea edx, [ebp - 0x58]
mov ecx, 0x539c58
mov byte [ebp - 4], 7
cmovae edx, dword [ebp - 0x58]
test edx, edx
cmovne ecx, edx
push ecx
push esi
call fcn.00406e80
push str._release_fail.
push esi
call fcn.00406e80
mov eax, dword [edi]
add esp, 0x10
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x150]
call fcn.00408e00
lea ecx, [ebp - 0xb8]
call fcn.00408670
lea ecx, [ebp - 0xa0]
call fcn.00408670
lea ecx, [ebp - 0x40]
call fcn.004086c0
lea ecx, [ebp - 0x58]
call fcn.004086c0
mov edx, dword [ebp - 0x5c]
cmp edx, 8
jb 0x412b3b
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412b31
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412b58
push edx
push ecx
call fcn.004bdb0a
add esp, 8
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bddc0
mov esp, ebp
pop ebp
ret
call fcn.00504809
int3