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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41130c
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x419004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xa8], ecx
mov esi, dword [ecx + 0x4c]
lea eax, [esi - 1]
test eax, eax
js 0x402a70
mov edi, dword [ecx + 0x50]
lea edx, [ecx + 0x3c]
mov ecx, edx
cmp edi, 8
jb 0x402a5c
mov ecx, dword [edx]
cmp word [ecx + eax*2], 0x2e
je 0x402a68
sub eax, 1
jns 0x402a53
mov ecx, dword [ebp - 0xa8]
test eax, eax
cmovns esi, eax
mov dword [ebp - 0x60], 0
add ecx, 0x3c
mov dword [ebp - 0x5c], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x70], xmm0
cmp dword [ecx + 0x10], esi
cmovb esi, dword [ecx + 0x10]
cmp dword [ecx + 0x14], 8
jb 0x402a9a
mov ecx, dword [ecx]
push esi
push ecx
lea ecx, [ebp - 0x70]
call fcn.00401000
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 edi, edi
mov dword [ebp - 0xcc], eax
mov dword [ebp - 0xac], edi
mov dword [ebp - 0xc8], edi
mov dword [ebp - 0xc4], edi
mov esi, dword [ebp - 0xa8]
mov dword [esi + 0x94], edi
lea eax, [esi + 0x84]
cmp dword [esi + 0x98], 8
jb 0x402b06
mov eax, dword [esi + 0x84]
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, esi
call fcn.004020c0
mov dword [ebp - 0xa4], eax
lea edx, [esi + 0x6c]
mov byte [ebp - 4], 4
mov esi, dword [edx + 0x10]
mov ecx, 0x7ffffffe
sub ecx, esi
cmp ecx, 1
jb 0x40316e
cmp dword [edx + 0x14], 8
mov eax, edx
jb 0x402b63
mov eax, dword [edx]
push 1
push 0x4125b4
push esi
push eax
push edx
push dword [ebp - 0xa4]
lea ecx, [ebp - 0x88]
call fcn.004019b0
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.00401800
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x402bd7
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402bcd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403173
push ecx
push edx
call fcn.0040434d
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, 8
jb 0x402c2a
mov edx, dword [ebp - 0x88]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402c20
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403173
push ecx
push edx
call fcn.0040434d
add esp, 8
mov ecx, dword [ebp - 0x8c]
mov byte [ebp - 4], 3
cmp ecx, 8
jb 0x402c6e
mov edx, dword [ebp - 0xa0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402c64
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403173
push ecx
push edx
call fcn.0040434d
add esp, 8
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, dword [ebp - 0xa8]
test eax, eax
je 0x402ca8
lea eax, [ebp - 0x28]
lea ecx, [esi + 0x84]
cmp ecx, eax
je 0x402ca8
cmp dword [ebp - 0x14], 8
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00403ef0
cmp dword [esi + 0x94], 0
jne 0x403066
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xa4], str..int
push eax
push 0
lea ecx, [ebp - 0xbc]
call fcn.00401350
mov eax, dword [ebp - 0xb4]
mov esi, dword [ebp - 0xb8]
mov dword [ebp - 0xa4], 0x412768
mov dword [ebp - 0xb0], eax
cmp esi, eax
je 0x402d04
mov dword [esi], 0x412768
add esi, 4
mov dword [ebp - 0xb8], esi
jmp 0x402d29
lea eax, [ebp - 0xa4]
push eax
push esi
lea ecx, [ebp - 0xbc]
call fcn.00401350
mov eax, dword [ebp - 0xb4]
mov esi, dword [ebp - 0xb8]
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xa4], str..pyw
cmp esi, eax
je 0x402d48
mov dword [esi], str..pyw
add esi, 4
mov dword [ebp - 0xb8], esi
jmp 0x402d6d
lea eax, [ebp - 0xa4]
push eax
push esi
lea ecx, [ebp - 0xbc]
call fcn.00401350
mov eax, dword [ebp - 0xb4]
mov esi, dword [ebp - 0xb8]
mov dword [ebp - 0xb0], eax
mov ecx, dword [ebp - 0xbc]
xor eax, eax
sub esi, ecx
mov dword [ebp - 0xa4], eax
sar esi, 2
mov dword [ebp - 0xc0], ecx
test esi, esi
jle 0x402ef6
nop
mov eax, dword [ecx + eax*4]
mov ecx, eax
mov dword [ebp - 0xac], eax
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402da0
sub ecx, edx
mov eax, 0x7ffffffe
mov edx, dword [ebp - 0x60]
sub eax, edx
sar ecx, 1
cmp eax, ecx
jb 0x40316e
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
push ecx
push dword [ebp - 0xac]
cmovae eax, dword [ebp - 0x70]
lea ecx, [ebp - 0x40]
push edx
push eax
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0xa4]
call fcn.004019b0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 6
push eax
cmp edi, dword [ebp - 0xc4]
je 0x402e09
mov ecx, edi
call fcn.00401750
add edi, 0x18
mov dword [ebp - 0xc8], edi
jmp 0x402e1b
push edi
lea ecx, [ebp - 0xcc]
call fcn.00401120
mov edi, dword [ebp - 0xc8]
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
mov dword [ebp - 0xac], edi
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x402e92
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 4], 3
cmp ecx, 8
jb 0x402e75
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402e6b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403178
push ecx
push edx
call fcn.0040434d
add esp, 8
mov eax, dword [ebp - 0xa4]
mov ecx, dword [ebp - 0xc0]
inc eax
mov dword [ebp - 0xa4], eax
cmp eax, esi
jl 0x402d90
jmp 0x402ef6
mov ecx, dword [ebp - 0xa8]
lea edx, [ebp - 0x40]
add ecx, 0x84
cmp ecx, edx
je 0x402eb8
cmp dword [ebp - 0x2c], 8
mov eax, edx
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.00403ef0
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 4], 3
cmp ecx, 8
jb 0x402ef6
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402eec
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403178
push ecx
push edx
call fcn.0040434d
add esp, 8
mov eax, dword [ebp - 0xa8]
cmp dword [eax + 0x94], 0
jne 0x403064
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.00401000
mov ecx, dword [ebp - 0xac]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0xcc]
xor edi, edi
sub ecx, esi
mov byte [ebp - 4], 7
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0xa4], eax
test eax, eax
jle 0x40300a
mov ecx, dword [esi + 0x10]
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 2
jb 0x40316e
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x402f7d
mov eax, dword [esi]
push 2
push 0x4127ac
push ecx
push eax
push esi
push dword [ebp - 0xa4]
lea ecx, [ebp - 0x88]
call fcn.004019b0
cmp dword [ebp - 0x74], 8
lea eax, [ebp - 0x88]
push dword [ebp - 0x78]
cmovae eax, dword [ebp - 0x88]
lea ecx, [ebp - 0x58]
push eax
mov byte [ebp - 4], 8
call fcn.00403d70
mov ecx, dword [ebp - 0x74]
mov byte [ebp - 4], 7
cmp ecx, 8
jb 0x402ffa
mov edx, dword [ebp - 0x88]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402ff0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40317d
push ecx
push edx
call fcn.0040434d
add esp, 8
inc edi
add esi, 0x18
cmp edi, dword [ebp - 0xa4]
jl 0x402f60
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
push 0
cmovae 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, 8
jb 0x40305f
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403055
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40317d
push ecx
push edx
call fcn.0040434d
add esp, 8
or esi, 0xffffffff
jmp 0x403085
mov esi, eax
cmp dword [esi + 0x98], 8
lea eax, [esi + 0x84]
jb 0x403077
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, 8
jb 0x4030bf
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4030b5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403182
push ecx
push edx
call fcn.0040434d
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.00401d50
mov edx, dword [ebp - 0xc0]
test edx, edx
je 0x40311b
mov ecx, dword [ebp - 0xb0]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x403111
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403182
push ecx
push edx
call fcn.0040434d
add esp, 8
mov ecx, dword [ebp - 0x5c]
cmp ecx, 8
jb 0x403151
mov edx, dword [ebp - 0x70]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403147
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403182
push ecx
push edx
call fcn.0040434d
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.00404558
mov esp, ebp
pop ebp
ret
call fcn.00403a90
call fcn.0040756f
call fcn.0040756f
call fcn.0040756f
call fcn.0040756f
int3