Function at 0x402320
Capabilities:
Accept command line arguments
Check if file exists
Set current directory
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4064ca
mov eax, dword fs:[0]
push eax
sub esp, 0x2c4
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 edi, ecx
mov dword [ebp - 0x2c4], edi
mov dword [ebp - 0x2c8], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edx, eax
lea esi, [edx + 2]
nop word [eax + eax]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x402370
sub edx, esi
lea esi, [edi + 0xc]
sar edx, 1
mov ecx, esi
push edx
push eax
call fcn.00403be0
cmp dword [esi + 0x14], 7
jbe 0x402393
mov esi, dword [esi]
lea eax, [ebp - 0x2cc]
push eax
push esi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x2c8], eax
test eax, eax
jne 0x4023c4
push eax
push 0x40720c
push str.Error_in_CommandLineToArgvW__
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
xor al, al
jmp 0x402c76
push dword [ebp - 0x2cc]
lea eax, [edi + 0x84]
mov ecx, eax
mov dword [ebp - 0x2c0], eax
call fcn.00403ec0
xor esi, esi
cmp dword [ebp - 0x2cc], esi
jle 0x40243a
xor edi, edi
nop dword [eax]
mov eax, dword [ebp - 0x2c8]
mov edx, dword [eax + esi*4]
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x2d0], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402404
sub ecx, dword [ebp - 0x2d0]
mov eax, dword [ebp - 0x2c0]
sar ecx, 1
push ecx
push edx
mov ecx, dword [eax]
add ecx, edi
call fcn.00403be0
inc esi
add edi, 0x18
cmp esi, dword [ebp - 0x2cc]
jl 0x4023f0
mov edi, dword [ebp - 0x2c4]
push dword [ebp - 0x2c8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0x105
lea eax, [ebp - 0x22c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x22c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402463
sub ecx, edx
lea eax, [ebp - 0x22c]
sar ecx, 1
push ecx
push eax
lea ecx, [edi + 0x24]
call fcn.00403be0
lea esi, [ebp - 0x22c]
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402490
sub ecx, edx
mov dword [ebp - 0x234], 0
sar ecx, 1
xorps xmm0, xmm0
push ecx
push esi
lea ecx, [ebp - 0x244]
mov dword [ebp - 0x230], 0
movups xmmword [ebp - 0x244], xmm0
call fcn.004011a0
cmp dword [ebp - 0x230], 7
lea ecx, [ebp - 0x244]
mov eax, dword [ebp - 0x234]
cmova ecx, dword [ebp - 0x244]
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c0], ecx
lea esi, [ecx + eax*2]
push esi
push ecx
call fcn.004038f0
add esp, 8
cmp eax, esi
je 0x402555
movzx ecx, word [eax]
cmp ecx, 0x5c
je 0x40250f
cmp ecx, 0x2f
jne 0x402516
add eax, 2
cmp eax, esi
jne 0x402502
cmp eax, esi
je 0x402555
nop word [eax + eax]
movzx edx, word [esi - 2]
cmp edx, 0x5c
je 0x402537
cmp edx, 0x2f
je 0x402537
add esi, 0xfffffffe
cmp eax, esi
jne 0x402520
jmp 0x402555
cmp eax, esi
je 0x402555
nop dword [eax + eax]
movzx edx, word [esi - 2]
cmp edx, 0x5c
je 0x40254e
cmp edx, 0x2f
jne 0x402555
add esi, 0xfffffffe
cmp eax, esi
jne 0x402540
mov eax, dword [ebp - 0x2c0]
lea ecx, [ebp - 0x25c]
sub esi, eax
mov dword [ebp - 0x24c], 0
sar esi, 1
xorps xmm0, xmm0
push esi
push eax
movups xmmword [ebp - 0x25c], xmm0
mov dword [ebp - 0x248], 0
call fcn.004011a0
lea eax, [ebp - 0x25c]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x2a4]
call fcn.00401aa0
lea esi, [edi + 0x54]
lea eax, [ebp - 0x2a4]
cmp esi, eax
je 0x4025db
mov ecx, esi
call fcn.00401d20
movups xmm0, xmmword [ebp - 0x2a4]
xor eax, eax
mov ecx, 7
mov word [ebp - 0x2a4], ax
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x294]
movq qword [esi + 0x10], xmm0
jmp 0x4025e1
mov ecx, dword [ebp - 0x290]
cmp ecx, 7
jbe 0x40261b
mov edx, dword [ebp - 0x2a4]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402611
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402c93
push ecx
push edx
call fcn.004046cf
add esp, 8
mov ecx, dword [ebp - 0x248]
mov byte [ebp - 4], 0
cmp ecx, 7
jbe 0x40265f
mov edx, dword [ebp - 0x25c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402655
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402c93
push ecx
push edx
call fcn.004046cf
add esp, 8
mov ecx, dword [ebp - 0x230]
mov dword [ebp - 4], 0xffffffff
cmp ecx, 7
jbe 0x4026a6
mov edx, dword [ebp - 0x244]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40269c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402c93
push ecx
push edx
call fcn.004046cf
add esp, 8
cmp dword [esi + 0x14], 7
mov eax, esi
jbe 0x4026b0
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov edx, dword [ebp + 8]
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x2c0], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4026c5
sub ecx, dword [ebp - 0x2c0]
xorps xmm0, xmm0
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28c]
mov dword [ebp - 0x27c], 0
movups xmmword [ebp - 0x28c], xmm0
mov dword [ebp - 0x278], 0
call fcn.004011a0
cmp dword [esi + 0x14], 7
mov eax, dword [esi + 0x10]
mov dword [ebp - 4], 2
jbe 0x402715
mov esi, dword [esi]
push eax
xorps xmm0, xmm0
mov dword [ebp - 0x264], 0
push esi
lea ecx, [ebp - 0x274]
mov dword [ebp - 0x260], 0
movups xmmword [ebp - 0x274], xmm0
call fcn.004011a0
cmp dword [ebp - 0x278], 7
lea ecx, [ebp - 0x28c]
mov edx, dword [ebp - 0x27c]
cmova ecx, dword [ebp - 0x28c]
mov byte [ebp - 4], 3
mov dword [ebp - 0x2c0], ecx
lea eax, [edx + edx]
test edx, edx
je 0x40287f
and eax, 0xfffffffe
cmp eax, 4
jl 0x40278a
mov eax, dword [ecx]
and eax, 0xffffffdf
sub eax, 0x3a0041
cmp eax, 0x1a
jb 0x40287f
movzx eax, word [ecx]
cmp eax, 0x5c
je 0x40287f
cmp eax, 0x2f
je 0x40287f
cmp dword [ebp - 0x260], 7
lea esi, [ebp - 0x274]
mov edi, dword [ebp - 0x264]
cmova esi, dword [ebp - 0x274]
cmp edi, 2
jne 0x4027d1
mov eax, dword [esi]
and eax, 0xffffffdf
sub eax, 0x3a0041
cmp eax, 0x1a
jae 0x4027d1
mov al, 1
jmp 0x4027d3
xor al, al
test edi, edi
je 0x4027f3
test al, al
jne 0x4027f3
movzx eax, word [esi + edi*2 - 2]
mov ecx, 0x4071d8
push eax
call fcn.004020a0
test al, al
jne 0x4027f3
mov al, 1
jmp 0x4027f5
xor al, al
movzx ecx, al
xorps xmm0, xmm0
add ecx, edi
mov dword [ebp - 0x234], 0
add ecx, dword [ebp - 0x27c]
xor edx, edx
movups xmmword [ebp - 0x244], xmm0
mov dword [ebp - 0x230], 7
mov word [ebp - 0x244], dx
mov edx, dword [ebp - 0x27c]
sub esp, 0x14
mov byte [ebp - 0x250], al
mov eax, dword [ebp - 0x2c0]
mov dword [ebp - 0x24c], eax
mov eax, esp
mov dword [ebp - 0x258], esi
mov dword [ebp - 0x254], edi
movups xmm0, xmmword [ebp - 0x258]
push ecx
lea ecx, [ebp - 0x244]
mov byte [ebp - 4], 4
movups xmmword [eax], xmm0
mov dword [ebp - 0x2c8], 0x7ff
mov dword [eax + 0x10], edx
call fcn.00401790
mov edi, dword [ebp - 0x2c4]
jmp 0x4028b1
lea eax, [ebp - 0x274]
push eax
lea ecx, [ebp - 0x244]
call fcn.00401aa0
lea eax, [ebp - 0x28c]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x244]
mov dword [ebp - 0x2c8], 0xbff
call fcn.004020c0
mov dword [ebp - 4], 3
lea eax, [ebp - 0x244]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x2bc]
call fcn.00401aa0
lea esi, [edi + 0x3c]
lea eax, [ebp - 0x2bc]
cmp esi, eax
je 0x402909
mov ecx, esi
call fcn.00401d20
movups xmm0, xmmword [ebp - 0x2bc]
xor eax, eax
mov ecx, 7
mov word [ebp - 0x2bc], ax
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x2ac]
movq qword [esi + 0x10], xmm0
jmp 0x40290f
mov ecx, dword [ebp - 0x2a8]
cmp ecx, 7
jbe 0x402949
mov edx, dword [ebp - 0x2bc]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40293f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402c98
push ecx
push edx
call fcn.004046cf
add esp, 8
mov ecx, dword [ebp - 0x230]
mov byte [ebp - 4], 3
cmp ecx, 7
jbe 0x40298d
mov edx, dword [ebp - 0x244]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402983
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402c98
push ecx
push edx
call fcn.004046cf
add esp, 8
mov ecx, dword [ebp - 0x260]
xor eax, eax
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x230], 7
mov word [ebp - 0x244], ax
mov byte [ebp - 4], 2
cmp ecx, 7
jbe 0x4029ee
mov edx, dword [ebp - 0x274]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4029e4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402c98
push ecx
push edx
call fcn.004046cf
add esp, 8
mov ecx, dword [ebp - 0x278]
xor eax, eax
mov dword [ebp - 0x264], 0
mov dword [ebp - 0x260], 7
mov word [ebp - 0x274], ax
mov dword [ebp - 4], 0xffffffff
cmp ecx, 7
jbe 0x402a52
mov edx, dword [ebp - 0x28c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402a48
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402c98
push ecx
push edx
call fcn.004046cf
add esp, 8
lea eax, [edi + 0x3c]
cmp dword [eax + 0x14], 7
lea edi, [eax + 0x14]
mov dword [ebp - 0x2c0], edi
jbe 0x402a66
mov eax, dword [eax]
mov esi, dword [ebp - 0x2c4]
push eax
add esi, 0x3c
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x402b20
mov ecx, dword [esi + 0x10]
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 0x1d
jb 0x402c9d
cmp dword [edi], 7
mov eax, esi
jbe 0x402a9a
mov eax, dword [esi]
push ecx
push eax
push 0x1d
push str.Missing_embedded_Python3_in:_n
push esi
push dword [ebp - 0x2c0]
lea ecx, [ebp - 0x244]
call fcn.00401b50
cmp dword [ebp - 0x230], 7
lea eax, [ebp - 0x244]
push 0
cmova eax, dword [ebp - 0x244]
push str.ERROR
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp - 0x230]
cmp ecx, 7
jbe 0x402b19
mov edx, dword [ebp - 0x244]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402b0f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402ca2
push ecx
push edx
call fcn.004046cf
add esp, 8
xor al, al
jmp 0x402c76
mov edx, dword [esi + 0x10]
mov edi, 0x7ffffffe
mov eax, edi
sub eax, edx
cmp eax, 0xc
jb 0x402ca7
mov eax, dword [ebp - 0x2c0]
mov ecx, esi
cmp dword [eax], 7
jbe 0x402b44
mov ecx, dword [esi]
push 0xc
push 0x40727c
push edx
push ecx
push esi
push dword [ebp - 0x2c0]
lea ecx, [ebp - 0x244]
call fcn.00401b50
cmp dword [ebp - 0x230], 7
lea eax, [ebp - 0x244]
cmova eax, dword [ebp - 0x244]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 0x230]
mov esi, eax
cmp ecx, 7
jbe 0x402bbc
mov edx, dword [ebp - 0x244]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402bb2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402cac
push ecx
push edx
call fcn.004046cf
add esp, 8
test esi, esi
jne 0x402c2f
mov eax, dword [ebp - 0x2c4]
add eax, 0x3c
mov edx, dword [eax + 0x10]
sub edi, edx
cmp edi, 0x19
jb 0x402cb1
cmp dword [eax + 0x14], 7
mov ecx, eax
jbe 0x402be1
mov ecx, dword [eax]
push edx
push ecx
push 0x19
push str.Missing_python3.dll_in:_r_n
push eax
push dword [ebp - 0x2c0]
lea ecx, [ebp - 0x25c]
call fcn.00401b50
cmp dword [ebp - 0x248], 7
lea eax, [ebp - 0x25c]
push 0
cmova eax, dword [ebp - 0x25c]
push str.ERROR
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x25c]
call fcn.00401d20
xor al, al
jmp 0x402c76
mov edi, dword [ebp - 0x2c4]
cmp dword [edi + 0x38], 7
lea eax, [edi + 0x24]
jbe 0x402c40
mov eax, dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push eax
push str.PYSTAND
call esi
cmp dword [edi + 0x68], 7
lea eax, [edi + 0x54]
jbe 0x402c59
mov eax, dword [eax]
push eax
push str.PYSTAND_HOME
call esi
cmp dword [edi + 0x50], 7
lea eax, [edi + 0x3c]
jbe 0x402c6c
mov eax, dword [eax]
push eax
push str.PYSTAND_RUNTIME
call esi
mov al, 1
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.0040468c
mov esp, ebp
pop ebp
ret 4
call fcn.004053d0
call fcn.004053d0
call fcn.00403a30
call fcn.004053d0
call fcn.00403a30
call fcn.004053d0
call fcn.00403a30
int3