Function at 0x4029a0
Capabilities:
Check if file exists
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x405ef5
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x40a040]
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, ecx
mov edx, dword [esi + 0x4c]
add edx, 0xffffffff
js 0x4029fb
mov edi, dword [esi + 0x50]
lea ecx, [esi + 0x3c]
nop word [eax + eax]
mov eax, ecx
cmp edi, 7
jbe 0x4029e9
mov eax, dword [ecx]
cmp word [eax + edx*2], 0x2e
je 0x4029f7
sub edx, 1
jns 0x4029e0
jmp 0x4029fb
test edx, edx
jns 0x402a01
mov edx, dword [esi + 0x4c]
lea ecx, [esi + 0x3c]
cmp dword [ecx + 0x10], edx
xorps xmm0, xmm0
movups xmmword [ebp - 0x58], xmm0
cmovb edx, dword [ecx + 0x10]
cmp dword [ecx + 0x14], 7
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
jbe 0x402a25
mov ecx, dword [ecx]
push edx
push ecx
lea ecx, [ebp - 0x58]
call fcn.004011b0
mov dword [ebp - 4], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
lea eax, [esi + 0x84]
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 7
jbe 0x402a75
mov eax, dword [eax]
xor ecx, ecx
xorps xmm0, xmm0
mov word [eax], cx
xor eax, eax
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov edx, dword [esi + 0x7c]
lea ecx, [esi + 0x6c]
mov edi, 0x7ffffffe
mov byte [ebp - 4], 3
mov eax, edi
sub eax, edx
cmp eax, 0x26
jb 0x402cf1
cmp dword [ecx + 0x14], 7
mov eax, ecx
jbe 0x402ab7
mov eax, dword [ecx]
push 0x26
push str.LunaTranslatorLunaTranslator_main.py
push edx
push eax
push ecx
push dword [ebp - 0x5c]
lea ecx, [ebp - 0x40]
call fcn.00401a10
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x402b06
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402afc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402d00
push ecx
push edx
call fcn.00403f93
add esp, 8
movups xmm1, xmmword [ebp - 0x40]
lea ecx, [ebp - 0x28]
movq xmm0, qword [ebp - 0x30]
movq qword [ebp - 0x18], xmm0
cmp dword [ebp - 0x14], 7
movd eax, xmm1
movups xmmword [ebp - 0x28], xmm1
cmova ecx, eax
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402b4f
lea ecx, [esi + 0x84]
lea eax, [ebp - 0x28]
cmp ecx, eax
je 0x402b4f
cmp dword [ebp - 0x14], 7
push dword [ebp - 0x18]
cmova eax, dword [ebp - 0x28]
push eax
call fcn.004037a0
cmp dword [esi + 0x94], 0
jne 0x402be7
mov ecx, dword [ebp - 0x18]
sub edi, ecx
cmp edi, 0xe
jb 0x402cf6
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
push ecx
cmova eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x40]
push eax
push 0xe
push str.Cant_find_:_r_n
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x5c]
call fcn.00401a10
cmp dword [ebp - 0x2c], 7
lea eax, [ebp - 0x40]
push 0
cmova eax, dword [ebp - 0x40]
push str.ERROR
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp - 0x2c]
cmp ecx, 7
jbe 0x402be2
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402bd8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402cfb
push ecx
push edx
call fcn.00403f93
add esp, 8
or esi, 0xffffffff
jmp 0x402c50
add esi, 0x84
cmp dword [esi + 0x14], 7
jbe 0x402bf5
mov esi, dword [esi]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push str.PYSTAND_SCRIPT
call esi
push 0x208
call fcn.00403f63
push 0x208
mov edi, eax
push 0
push edi
call sub.msvcrt.dll_memset
add esp, 0x10
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x104
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push edi
push str.LUNA_EXE_NAME
call esi
xor esi, esi
test edi, edi
je 0x402c50
push 0x208
push edi
call fcn.00403f93
add esp, 8
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x402c8a
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402c80
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402d00
push ecx
push edx
call fcn.00403f93
add esp, 8
mov ecx, dword [ebp - 0x44]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp ecx, 7
jbe 0x402cd4
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402cca
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402d00
push ecx
push edx
call fcn.00403f93
add esp, 8
mov eax, esi
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.00403f50
mov esp, ebp
pop ebp
ret
call fcn.00403600
call fcn.00403600
call fcn.00404d70
call fcn.00404d70
int3