Function at 0x42b1c0
Capabilities:
Check if file exists
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52e2d1
mov eax, dword fs:[0]
push eax
mov eax, 0x152c
call fcn.004bde30
mov eax, dword [0x57d718]
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 ebx, dword [ebp + 8]
lea eax, [ebp - 0x1468]
push 0x1458
push 0
push eax
mov dword [ebp - 0x1470], ebx
call fcn.00501330
add esp, 0xc
lea eax, [ebp - 0x1468]
push 0xa2c
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x1468]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.SmartChat.exe
lea eax, [ebp - 0x1468]
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
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 0x42b3ed
push 0x3f
push str.d:jenkins.jenkinsworkspacemgame_aichat_alchattrayutils.cpp
lea ecx, [ebp - 0x14a0]
mov dword [ebp - 0x1490], eax
mov dword [ebp - 0x148c], 0xf
mov byte [ebp - 0x14a0], al
call fcn.0040c1a0
push 3
push 0x53a170
lea ecx, [ebp - 0x1488]
mov dword [ebp - 4], 0
mov dword [ebp - 0x1478], 0
mov dword [ebp - 0x1474], 0xf
mov byte [ebp - 0x1488], 0
call fcn.0040c1a0
mov byte [ebp - 4], 1
call fcn.00434ec0
mov edi, eax
lea ecx, [ebp - 0x1538]
push 0x3d1
lea eax, [ebp - 0x14a0]
push eax
lea eax, [ebp - 0x1488]
push eax
call fcn.00407ba0
mov esi, eax
push str.run_SmartChat.exe._path:
push esi
mov byte [ebp - 4], 2
call fcn.00406e80
lea eax, [ebp - 0x1468]
push eax
push esi
call fcn.00406e80
push str._cmd:
push esi
call fcn.00406e80
mov eax, dword [ebx]
mov ecx, 0x539c58
test eax, eax
cmovne ecx, eax
push ecx
push esi
call fcn.00406e80
mov eax, dword [edi]
add esp, 0x20
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x1538]
call fcn.00408e00
mov edx, dword [ebp - 0x1474]
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x42b376
mov ecx, dword [ebp - 0x1488]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x42b36c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42b4f7
push edx
push ecx
call fcn.004bdb0a
add esp, 8
mov edx, dword [ebp - 0x148c]
mov dword [ebp - 0x1478], 0
mov dword [ebp - 0x1474], 0xf
mov byte [ebp - 0x1488], 0
mov dword [ebp - 4], 0xffffffff
cmp edx, 0x10
jb 0x42b3d2
mov ecx, dword [ebp - 0x14a0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x42b3c8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42b4fc
push edx
push ecx
call fcn.004bdb0a
add esp, 8
mov dword [ebp - 0x1490], 0
mov dword [ebp - 0x148c], 0xf
mov byte [ebp - 0x14a0], 0
mov bl, byte [ebp + 0xc]
test bl, bl
je 0x42b40a
push 1
push 1
push 0x53a740
push str.pkg_m
call fcn.0042ac30
add esp, 0x10
lea eax, [ebp - 0x1468]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42b435
test bl, bl
je 0x42b435
push 1
push 1
push 0x53a740
push str.pkg_m_lose
call fcn.0042ac30
add esp, 0x10
push 0
push 1
push 1
push fcn.00430ff0
lea eax, [ebp - 0x146c]
mov dword [ebp - 0x146c], 0
push eax
mov eax, dword [ebp - 0x1470]
push dword [eax]
lea eax, [ebp - 0x1468]
push eax
movzx eax, bl
push eax
call fcn.004281f0
test eax, eax
jne 0x42b4a9
test bl, bl
je 0x42b49a
push 1
push 1
push 0x53a740
push str.pkg_m_fail
call fcn.0042ac30
push 1
push 1
push 0x53a740
push str.pkg_end_m
call fcn.0042ac30
add esp, 0x20
push str._n__tWinMain:_CreateProcess_fail.__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor eax, eax
jmp 0x42b4db
test bl, bl
je 0x42b4d6
push 1
push 1
push 0x53a740
push str.pkg_m_succ
call fcn.0042ac30
push 1
push 1
push 0x53a740
push str.pkg_end_m
call fcn.0042ac30
add esp, 0x20
mov eax, 1
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.004bddc0
mov esp, ebp
pop ebp
ret
call fcn.00504809
call fcn.00504809
int3