Function at 0x403020
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x406581
mov eax, dword fs:[0]
push eax
sub esp, 0x288
mov eax, dword [0x40a040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esi + 0x3c]
push eax
lea ecx, [ebp - 0x244]
call fcn.00401aa0
xorps xmm0, xmm0
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x24c], 0
movups xmmword [ebp - 0x25c], xmm0
mov dword [ebp - 0x248], 7
mov word [ebp - 0x25c], ax
lea eax, [ebp - 0x22c]
mov byte [ebp - 4], 1
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [ebp - 0x22c]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4030b0
sub ecx, edx
lea eax, [ebp - 0x22c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x25c]
call fcn.00403be0
cmp dword [ebp - 0x230], 7
lea eax, [ebp - 0x244]
cmova eax, dword [ebp - 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push str.python3.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esi + 8], eax
test eax, eax
je 0x40310e
push str.Py_Main
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 4], eax
cmp dword [ebp - 0x248], 7
lea eax, [ebp - 0x25c]
cmova eax, dword [ebp - 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp dword [esi + 8], 0
jne 0x4031b9
mov ecx, dword [ebp - 0x234]
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 0x1f
jb 0x4033a4
cmp dword [ebp - 0x230], 7
lea eax, [ebp - 0x244]
push ecx
cmova eax, dword [ebp - 0x244]
lea ecx, [ebp - 0x274]
push eax
push 0x1f
push str.Cannot_load_python3.dll_from:_r_n
lea eax, [ebp - 0x244]
push eax
push dword [ebp - 0x294]
call fcn.00401b50
cmp dword [ebp - 0x260], 7
lea eax, [ebp - 0x274]
push 0
cmova eax, dword [ebp - 0x274]
push str.ERROR
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x274]
call fcn.00401d20
mov byte [ebp - 0x28d], 0
jmp 0x4032eb
cmp dword [esi + 4], 0
jne 0x4032e4
push 0x1b
xorps xmm0, xmm0
mov dword [ebp - 0x27c], 0
push str.Cannot_find_Py_Main___in:_r_n
lea ecx, [ebp - 0x28c]
mov dword [ebp - 0x278], 0
movups xmmword [ebp - 0x28c], xmm0
call fcn.004011a0
mov ecx, dword [ebp - 0x234]
mov eax, 0x7ffffffe
sub eax, ecx
mov byte [ebp - 4], 2
cmp eax, 0xc
jb 0x4033a9
cmp dword [ebp - 0x230], 7
lea eax, [ebp - 0x244]
push 0xc
cmova eax, dword [ebp - 0x244]
push 0x40727c
push ecx
push eax
lea eax, [ebp - 0x244]
push eax
push dword [ebp - 0x294]
lea ecx, [ebp - 0x274]
call fcn.00401b50
cmp dword [ebp - 0x260], 7
lea eax, [ebp - 0x274]
push dword [ebp - 0x264]
cmova eax, dword [ebp - 0x274]
lea ecx, [ebp - 0x28c]
push eax
mov byte [ebp - 4], 3
call fcn.00403a60
lea ecx, [ebp - 0x274]
call fcn.00401d20
cmp dword [ebp - 0x278], 7
lea eax, [ebp - 0x28c]
push 0
cmova eax, dword [ebp - 0x28c]
push str.ERROR
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp - 0x278]
cmp ecx, 7
jbe 0x4032db
mov edx, dword [ebp - 0x28c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4032d1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4033ae
push ecx
push edx
call fcn.004046cf
add esp, 8
mov byte [ebp - 0x28d], 0
jmp 0x4032eb
mov byte [ebp - 0x28d], 1
mov ecx, dword [ebp - 0x248]
cmp ecx, 7
jbe 0x40332b
mov edx, dword [ebp - 0x25c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403321
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4033b3
push ecx
push edx
call fcn.004046cf
add esp, 8
mov ecx, dword [ebp - 0x230]
xor eax, eax
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x248], 7
mov word [ebp - 0x25c], ax
cmp ecx, 7
jbe 0x403384
mov edx, dword [ebp - 0x244]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40337a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4033b3
push ecx
push edx
call fcn.004046cf
add esp, 8
mov al, byte [ebp - 0x28d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040468c
mov esp, ebp
pop ebp
ret
call fcn.00403a30
call fcn.00403a30
call fcn.004053d0
call fcn.004053d0
int3