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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4064ea
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 0x402380
sub edx, esi
lea esi, [edi + 0xc]
sar edx, 1
mov ecx, esi
push edx
push eax
call fcn.00403bf0
cmp dword [esi + 0x14], 7
jbe 0x4023a3
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 0x4023d4
push eax
push 0x40720c
push str.Error_in_CommandLineToArgvW__
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
xor al, al
jmp 0x402c86
push dword [ebp - 0x2cc]
lea eax, [edi + 0x84]
mov ecx, eax
mov dword [ebp - 0x2c0], eax
call fcn.00403ed0
xor esi, esi
cmp dword [ebp - 0x2cc], esi
jle 0x40244a
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 0x402414
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.00403bf0
inc esi
add edi, 0x18
cmp esi, dword [ebp - 0x2cc]
jl 0x402400
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 0x402473
sub ecx, edx
lea eax, [ebp - 0x22c]
sar ecx, 1
push ecx
push eax
lea ecx, [edi + 0x24]
call fcn.00403bf0
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 0x4024a0
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.004011b0
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.00403900
add esp, 8
cmp eax, esi
je 0x402565
movzx ecx, word [eax]
cmp ecx, 0x5c
je 0x40251f
cmp ecx, 0x2f
jne 0x402526
add eax, 2
cmp eax, esi
jne 0x402512
cmp eax, esi
je 0x402565
nop word [eax + eax]
movzx edx, word [esi - 2]
cmp edx, 0x5c
je 0x402547
cmp edx, 0x2f
je 0x402547
add esi, 0xfffffffe
cmp eax, esi
jne 0x402530
jmp 0x402565
cmp eax, esi
je 0x402565
nop dword [eax + eax]
movzx edx, word [esi - 2]
cmp edx, 0x5c
je 0x40255e
cmp edx, 0x2f
jne 0x402565
add esi, 0xfffffffe
cmp eax, esi
jne 0x402550
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.004011b0
lea eax, [ebp - 0x25c]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x2a4]
call fcn.00401ab0
lea esi, [edi + 0x54]
lea eax, [ebp - 0x2a4]
cmp esi, eax
je 0x4025eb
mov ecx, esi
call fcn.00401d30
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 0x4025f1
mov ecx, dword [ebp - 0x290]
cmp ecx, 7
jbe 0x40262b
mov edx, dword [ebp - 0x2a4]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402621
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402ca3
push ecx
push edx
call fcn.004046e1
add esp, 8
mov ecx, dword [ebp - 0x248]
mov byte [ebp - 4], 0
cmp ecx, 7
jbe 0x40266f
mov edx, dword [ebp - 0x25c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402665
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402ca3
push ecx
push edx
call fcn.004046e1
add esp, 8
mov ecx, dword [ebp - 0x230]
mov dword [ebp - 4], 0xffffffff
cmp ecx, 7
jbe 0x4026b6
mov edx, dword [ebp - 0x244]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4026ac
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402ca3
push ecx
push edx
call fcn.004046e1
add esp, 8
cmp dword [esi + 0x14], 7
mov eax, esi
jbe 0x4026c0
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 0x4026d5
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.004011b0
cmp dword [esi + 0x14], 7
mov eax, dword [esi + 0x10]
mov dword [ebp - 4], 2
jbe 0x402725
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.004011b0
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 0x40288f
and eax, 0xfffffffe
cmp eax, 4
jl 0x40279a
mov eax, dword [ecx]
and eax, 0xffffffdf
sub eax, 0x3a0041
cmp eax, 0x1a
jb 0x40288f
movzx eax, word [ecx]
cmp eax, 0x5c
je 0x40288f
cmp eax, 0x2f
je 0x40288f
cmp dword [ebp - 0x260], 7
lea esi, [ebp - 0x274]
mov edi, dword [ebp - 0x264]
cmova esi, dword [ebp - 0x274]
cmp edi, 2
jne 0x4027e1
mov eax, dword [esi]
and eax, 0xffffffdf
sub eax, 0x3a0041
cmp eax, 0x1a
jae 0x4027e1
mov al, 1
jmp 0x4027e3
xor al, al
test edi, edi
je 0x402803
test al, al
jne 0x402803
movzx eax, word [esi + edi*2 - 2]
mov ecx, 0x4071d8
push eax
call fcn.004020b0
test al, al
jne 0x402803
mov al, 1
jmp 0x402805
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.004017a0
mov edi, dword [ebp - 0x2c4]
jmp 0x4028c1
lea eax, [ebp - 0x274]
push eax
lea ecx, [ebp - 0x244]
call fcn.00401ab0
lea eax, [ebp - 0x28c]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x244]
mov dword [ebp - 0x2c8], 0xbff
call fcn.004020d0
mov dword [ebp - 4], 3
lea eax, [ebp - 0x244]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x2bc]
call fcn.00401ab0
lea esi, [edi + 0x3c]
lea eax, [ebp - 0x2bc]
cmp esi, eax
je 0x402919
mov ecx, esi
call fcn.00401d30
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 0x40291f
mov ecx, dword [ebp - 0x2a8]
cmp ecx, 7
jbe 0x402959
mov edx, dword [ebp - 0x2bc]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40294f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402ca8
push ecx
push edx
call fcn.004046e1
add esp, 8
mov ecx, dword [ebp - 0x230]
mov byte [ebp - 4], 3
cmp ecx, 7
jbe 0x40299d
mov edx, dword [ebp - 0x244]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402993
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402ca8
push ecx
push edx
call fcn.004046e1
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 0x4029fe
mov edx, dword [ebp - 0x274]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4029f4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402ca8
push ecx
push edx
call fcn.004046e1
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 0x402a62
mov edx, dword [ebp - 0x28c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402a58
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402ca8
push ecx
push edx
call fcn.004046e1
add esp, 8
lea eax, [edi + 0x3c]
cmp dword [eax + 0x14], 7
lea edi, [eax + 0x14]
mov dword [ebp - 0x2c0], edi
jbe 0x402a76
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 0x402b30
mov ecx, dword [esi + 0x10]
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 0x1d
jb 0x402cad
cmp dword [edi], 7
mov eax, esi
jbe 0x402aaa
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.00401b60
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 0x402b29
mov edx, dword [ebp - 0x244]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402b1f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402cb2
push ecx
push edx
call fcn.004046e1
add esp, 8
xor al, al
jmp 0x402c86
mov edx, dword [esi + 0x10]
mov edi, 0x7ffffffe
mov eax, edi
sub eax, edx
cmp eax, 0xc
jb 0x402cb7
mov eax, dword [ebp - 0x2c0]
mov ecx, esi
cmp dword [eax], 7
jbe 0x402b54
mov ecx, dword [esi]
push 0xc
push 0x40727c
push edx
push ecx
push esi
push dword [ebp - 0x2c0]
lea ecx, [ebp - 0x244]
call fcn.00401b60
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 0x402bcc
mov edx, dword [ebp - 0x244]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402bc2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402cbc
push ecx
push edx
call fcn.004046e1
add esp, 8
test esi, esi
jne 0x402c3f
mov eax, dword [ebp - 0x2c4]
add eax, 0x3c
mov edx, dword [eax + 0x10]
sub edi, edx
cmp edi, 0x19
jb 0x402cc1
cmp dword [eax + 0x14], 7
mov ecx, eax
jbe 0x402bf1
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.00401b60
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.00401d30
xor al, al
jmp 0x402c86
mov edi, dword [ebp - 0x2c4]
cmp dword [edi + 0x38], 7
lea eax, [edi + 0x24]
jbe 0x402c50
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 0x402c69
mov eax, dword [eax]
push eax
push str.PYSTAND_HOME
call esi
cmp dword [edi + 0x50], 7
lea eax, [edi + 0x3c]
jbe 0x402c7c
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.0040469e
mov esp, ebp
pop ebp
ret 4
call fcn.004053e0
call fcn.004053e0
call fcn.00403a40
call fcn.004053e0
call fcn.00403a40
call fcn.004053e0
call fcn.00403a40
int3