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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4129ec
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x41a040]
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 0x402d6b
mov esi, dword [eax + 0x50]
lea ecx, [eax + 0x3c]
mov eax, ecx
cmp esi, 7
jbe 0x402d4e
mov eax, dword [ecx]
cmp word [eax + edx*2], 0x2e
je 0x402d67
sub edx, 1
jns 0x402d45
mov edx, edi
mov edi, dword [ebp - 0xa8]
lea ecx, [edi + 0x3c]
jmp 0x402d7e
test edx, edx
jns 0x402d78
mov edx, edi
mov edi, dword [ebp - 0xa8]
lea ecx, [edi + 0x3c]
jmp 0x402d7e
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 0x402da2
mov ecx, dword [ecx]
push edx
push ecx
lea ecx, [ebp - 0x70]
call fcn.00401240
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 0x402dfe
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.004023c0
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 0x40346c
cmp dword [edx + 0x14], 7
mov eax, edx
jbe 0x402e5b
mov eax, dword [edx]
push 1
push 0x4137d0
push edi
push eax
push edx
push dword [ebp - 0xa4]
lea ecx, [ebp - 0x88]
call fcn.00401c50
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.00401aa0
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x402ecf
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402ec5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403471
push ecx
push edx
call fcn.00404650
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 0x402f22
mov edx, dword [ebp - 0x88]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402f18
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403471
push ecx
push edx
call fcn.00404650
add esp, 8
mov ecx, dword [ebp - 0x8c]
mov byte [ebp - 4], 3
cmp ecx, 7
jbe 0x402f66
mov edx, dword [ebp - 0xa0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402f5c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403471
push ecx
push edx
call fcn.00404650
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 0x402fa0
mov ecx, dword [ebp - 0xa8]
lea eax, [ebp - 0x28]
add ecx, 0x84
cmp ecx, eax
je 0x402fa0
cmp dword [ebp - 0x14], 7
push dword [ebp - 0x18]
cmova eax, dword [ebp - 0x28]
push eax
call fcn.004040f0
mov ecx, dword [ebp - 0xa8]
cmp dword [ecx + 0x94], 0
jne 0x403368
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xa4], str..int
push eax
push 0
lea ecx, [ebp - 0xbc]
call fcn.004015a0
mov eax, dword [ebp - 0xb4]
mov edi, dword [ebp - 0xb8]
mov dword [ebp - 0xa4], 0x413988
mov dword [ebp - 0xb0], eax
cmp edi, eax
je 0x403002
mov dword [edi], 0x413988
add edi, 4
mov dword [ebp - 0xb8], edi
jmp 0x403027
lea eax, [ebp - 0xa4]
push eax
push edi
lea ecx, [ebp - 0xbc]
call fcn.004015a0
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 0x403046
mov dword [edi], str..pyw
add edi, 4
mov dword [ebp - 0xb8], edi
jmp 0x40306b
lea eax, [ebp - 0xa4]
push eax
push edi
lea ecx, [ebp - 0xbc]
call fcn.004015a0
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 0x403200
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 0x4030a0
sub ecx, edx
mov eax, 0x7ffffffe
mov edx, dword [ebp - 0x60]
sub eax, edx
sar ecx, 1
cmp eax, ecx
jb 0x40346c
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.00401c50
mov esi, dword [ebp - 0xac]
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 6
push eax
cmp esi, dword [ebp - 0xc4]
je 0x403110
mov ecx, esi
call fcn.004019f0
add esi, 0x18
mov dword [ebp - 0xac], esi
mov dword [ebp - 0xc8], esi
jmp 0x403128
push esi
lea ecx, [ebp - 0xcc]
call fcn.00401350
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 0x403198
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 4], 3
cmp ecx, 7
jbe 0x40317c
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403172
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403476
push ecx
push edx
call fcn.00404650
add esp, 8
mov eax, dword [ebp - 0xa4]
inc eax
mov dword [ebp - 0xa4], eax
cmp eax, edi
jge 0x4031fa
mov ecx, dword [ebp - 0xc0]
jmp 0x403090
mov ecx, dword [ebp - 0xa8]
lea eax, [ebp - 0x40]
add ecx, 0x84
cmp ecx, eax
je 0x4031bc
cmp dword [ebp - 0x2c], 7
push dword [ebp - 0x30]
cmova eax, dword [ebp - 0x40]
push eax
call fcn.004040f0
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 4], 3
cmp ecx, 7
jbe 0x4031fa
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4031f0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403476
push ecx
push edx
call fcn.00404650
add esp, 8
mov esi, dword [ebp - 0xcc]
mov ecx, dword [ebp - 0xa8]
cmp dword [ecx + 0x94], 0
jne 0x403368
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.00401240
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 0x40330e
mov ecx, dword [esi + 0x10]
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 2
jb 0x40346c
cmp dword [esi + 0x14], 7
mov eax, esi
jbe 0x403281
mov eax, dword [esi]
push 2
push 0x4139cc
push ecx
push eax
push esi
push dword [ebp - 0xa4]
lea ecx, [ebp - 0x88]
call fcn.00401c50
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.00403f70
mov ecx, dword [ebp - 0x74]
mov byte [ebp - 4], 7
cmp ecx, 7
jbe 0x4032fe
mov edx, dword [ebp - 0x88]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4032f4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40347b
push ecx
push edx
call fcn.00404650
add esp, 8
inc edi
add esi, 0x18
cmp edi, dword [ebp - 0xa4]
jl 0x403264
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 0x403363
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403359
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40347b
push ecx
push edx
call fcn.00404650
add esp, 8
or esi, 0xffffffff
jmp 0x403387
cmp dword [ecx + 0x98], 7
lea eax, [ecx + 0x84]
jbe 0x403379
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 0x4033c1
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4033b7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403480
push ecx
push edx
call fcn.00404650
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.00402050
mov edx, dword [ebp - 0xc0]
test edx, edx
je 0x403419
mov ecx, dword [ebp - 0xb0]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x40340f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403480
push ecx
push edx
call fcn.00404650
add esp, 8
mov ecx, dword [ebp - 0x5c]
cmp ecx, 7
jbe 0x40344f
mov edx, dword [ebp - 0x70]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403445
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403480
push ecx
push edx
call fcn.00404650
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.0040485e
mov esp, ebp
pop ebp
ret
call fcn.00403da0
call fcn.004079ef
call fcn.004079ef
call fcn.004079ef
call fcn.004079ef
int3