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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4114ac
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x419040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0xa8], eax
mov edi, dword [eax + 0x4c]
lea edx, [edi - 1]
test edx, edx
js 0x402bbb
mov esi, dword [eax + 0x50]
lea ecx, [eax + 0x3c]
mov eax, ecx
cmp esi, 7
jbe 0x402b9e
mov eax, dword [ecx]
cmp word [eax + edx*2], 0x2e
je 0x402bb7
sub edx, 1
jns 0x402b95
mov edx, edi
mov edi, dword [ebp - 0xa8]
lea ecx, [edi + 0x3c]
jmp 0x402bce
test edx, edx
jns 0x402bc8
mov edx, edi
mov edi, dword [ebp - 0xa8]
lea ecx, [edi + 0x3c]
jmp 0x402bce
mov edi, dword [ebp - 0xa8]
cmp dword [ecx + 0x10], edx
xorps xmm0, xmm0
movups xmmword [ebp - 0x70], xmm0
cmovb edx, dword [ecx + 0x10]
cmp dword [ecx + 0x14], 7
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
jbe 0x402bf2
mov ecx, dword [ecx]
push edx
push ecx
lea ecx, [ebp - 0x70]
call fcn.00401120
xor eax, eax
mov dword [ebp - 4], 0
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xb4], eax
xor esi, esi
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xcc], esi
mov dword [ebp - 0xc8], eax
mov dword [ebp - 0xc4], eax
lea eax, [edi + 0x84]
mov dword [eax + 0x10], esi
cmp dword [eax + 0x14], 7
jbe 0x402c4e
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
push str._pystand_static.int
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 3
push eax
mov ecx, edi
call fcn.00402210
mov dword [ebp - 0xa4], eax
lea edx, [edi + 0x6c]
mov byte [ebp - 4], 4
mov edi, dword [edx + 0x10]
mov ecx, 0x7ffffffe
sub ecx, edi
cmp ecx, 1
jb 0x4032bc
cmp dword [edx + 0x14], 7
mov eax, edx
jbe 0x402cab
mov eax, dword [edx]
push 1
push 0x4125c0
push edi
push eax
push edx
push dword [ebp - 0xa4]
lea ecx, [ebp - 0x88]
call fcn.00401af0
push dword [ebp - 0xa4]
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 5
push eax
push dword [ebp - 0xa4]
lea ecx, [ebp - 0x58]
call fcn.00401940
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x402d1f
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402d15
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4032c1
push ecx
push edx
call fcn.0040439d
add esp, 8
movups xmm0, xmmword [ebp - 0x58]
mov ecx, dword [ebp - 0x74]
mov byte [ebp - 4], 4
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [ebp - 0x48]
movq qword [ebp - 0x18], xmm0
cmp ecx, 7
jbe 0x402d72
mov edx, dword [ebp - 0x88]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402d68
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4032c1
push ecx
push edx
call fcn.0040439d
add esp, 8
mov ecx, dword [ebp - 0x8c]
mov byte [ebp - 4], 3
cmp ecx, 7
jbe 0x402db6
mov edx, dword [ebp - 0xa0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402dac
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4032c1
push ecx
push edx
call fcn.0040439d
add esp, 8
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402df0
mov ecx, dword [ebp - 0xa8]
lea eax, [ebp - 0x28]
add ecx, 0x84
cmp ecx, eax
je 0x402df0
cmp dword [ebp - 0x14], 7
push dword [ebp - 0x18]
cmova eax, dword [ebp - 0x28]
push eax
call fcn.00403f40
mov ecx, dword [ebp - 0xa8]
cmp dword [ecx + 0x94], 0
jne 0x4031b8
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xa4], str..int
push eax
push 0
lea ecx, [ebp - 0xbc]
call fcn.00401480
mov eax, dword [ebp - 0xb4]
mov edi, dword [ebp - 0xb8]
mov dword [ebp - 0xa4], 0x412778
mov dword [ebp - 0xb0], eax
cmp edi, eax
je 0x402e52
mov dword [edi], 0x412778
add edi, 4
mov dword [ebp - 0xb8], edi
jmp 0x402e77
lea eax, [ebp - 0xa4]
push eax
push edi
lea ecx, [ebp - 0xbc]
call fcn.00401480
mov eax, dword [ebp - 0xb4]
mov edi, dword [ebp - 0xb8]
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xa4], str..pyw
cmp edi, eax
je 0x402e96
mov dword [edi], str..pyw
add edi, 4
mov dword [ebp - 0xb8], edi
jmp 0x402ebb
lea eax, [ebp - 0xa4]
push eax
push edi
lea ecx, [ebp - 0xbc]
call fcn.00401480
mov eax, dword [ebp - 0xb4]
mov edi, dword [ebp - 0xb8]
mov dword [ebp - 0xb0], eax
mov ecx, dword [ebp - 0xbc]
xor eax, eax
sub edi, ecx
mov dword [ebp - 0xa4], eax
sar edi, 2
mov dword [ebp - 0xc0], ecx
test edi, edi
jle 0x403050
nop dword [eax]
mov esi, dword [ecx + eax*4]
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402ef0
sub ecx, edx
mov eax, 0x7ffffffe
mov edx, dword [ebp - 0x60]
sub eax, edx
sar ecx, 1
cmp eax, ecx
jb 0x4032bc
cmp dword [ebp - 0x5c], 7
lea eax, [ebp - 0x70]
push ecx
cmova eax, dword [ebp - 0x70]
lea ecx, [ebp - 0x40]
push esi
push edx
push eax
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0xa4]
call fcn.00401af0
mov esi, dword [ebp - 0xac]
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 6
push eax
cmp esi, dword [ebp - 0xc4]
je 0x402f60
mov ecx, esi
call fcn.00401890
add esi, 0x18
mov dword [ebp - 0xac], esi
mov dword [ebp - 0xc8], esi
jmp 0x402f78
push esi
lea ecx, [ebp - 0xcc]
call fcn.00401230
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0xac], eax
cmp dword [ebp - 0x2c], 7
lea eax, [ebp - 0x40]
cmova eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x402fe8
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 4], 3
cmp ecx, 7
jbe 0x402fcc
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402fc2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4032c6
push ecx
push edx
call fcn.0040439d
add esp, 8
mov eax, dword [ebp - 0xa4]
inc eax
mov dword [ebp - 0xa4], eax
cmp eax, edi
jge 0x40304a
mov ecx, dword [ebp - 0xc0]
jmp 0x402ee0
mov ecx, dword [ebp - 0xa8]
lea eax, [ebp - 0x40]
add ecx, 0x84
cmp ecx, eax
je 0x40300c
cmp dword [ebp - 0x2c], 7
push dword [ebp - 0x30]
cmova eax, dword [ebp - 0x40]
push eax
call fcn.00403f40
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 4], 3
cmp ecx, 7
jbe 0x40304a
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403040
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4032c6
push ecx
push edx
call fcn.0040439d
add esp, 8
mov esi, dword [ebp - 0xcc]
mov ecx, dword [ebp - 0xa8]
cmp dword [ecx + 0x94], 0
jne 0x4031b8
push 0x17
xorps xmm0, xmm0
mov dword [ebp - 0x48], 0
push str.Cant_find_either_of:_r_n
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x44], 0
movups xmmword [ebp - 0x58], xmm0
call fcn.00401120
mov ecx, dword [ebp - 0xac]
mov eax, 0x2aaaaaab
sub ecx, esi
mov byte [ebp - 4], 7
imul ecx
xor edi, edi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0xa4], eax
test eax, eax
jle 0x40315e
mov ecx, dword [esi + 0x10]
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 2
jb 0x4032bc
cmp dword [esi + 0x14], 7
mov eax, esi
jbe 0x4030d1
mov eax, dword [esi]
push 2
push 0x4127bc
push ecx
push eax
push esi
push dword [ebp - 0xa4]
lea ecx, [ebp - 0x88]
call fcn.00401af0
cmp dword [ebp - 0x74], 7
lea eax, [ebp - 0x88]
push dword [ebp - 0x78]
cmova eax, dword [ebp - 0x88]
lea ecx, [ebp - 0x58]
push eax
mov byte [ebp - 4], 8
call fcn.00403dc0
mov ecx, dword [ebp - 0x74]
mov byte [ebp - 4], 7
cmp ecx, 7
jbe 0x40314e
mov edx, dword [ebp - 0x88]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403144
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4032cb
push ecx
push edx
call fcn.0040439d
add esp, 8
inc edi
add esi, 0x18
cmp edi, dword [ebp - 0xa4]
jl 0x4030b4
cmp dword [ebp - 0x44], 7
lea eax, [ebp - 0x58]
push 0
cmova eax, dword [ebp - 0x58]
push str.ERROR
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp - 0x44]
cmp ecx, 7
jbe 0x4031b3
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4031a9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4032cb
push ecx
push edx
call fcn.0040439d
add esp, 8
or esi, 0xffffffff
jmp 0x4031d7
cmp dword [ecx + 0x98], 7
lea eax, [ecx + 0x84]
jbe 0x4031c9
mov eax, dword [eax]
push eax
push str.PYSTAND_SCRIPT
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
xor esi, esi
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x403211
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403207
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4032d0
push ecx
push edx
call fcn.0040439d
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0xcc]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00401ea0
mov edx, dword [ebp - 0xc0]
test edx, edx
je 0x403269
mov ecx, dword [ebp - 0xb0]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x40325f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4032d0
push ecx
push edx
call fcn.0040439d
add esp, 8
mov ecx, dword [ebp - 0x5c]
cmp ecx, 7
jbe 0x40329f
mov edx, dword [ebp - 0x70]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403295
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4032d0
push ecx
push edx
call fcn.0040439d
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.004045ab
mov esp, ebp
pop ebp
ret
call fcn.00403bf0
call fcn.0040770f
call fcn.0040770f
call fcn.0040770f
call fcn.0040770f
int3