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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x411511
mov eax, dword fs:[0]
push eax
sub esp, 0x288
mov eax, dword [0x419040]
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 + 0x54]
push eax
lea ecx, [ebp - 0x244]
call fcn.00401890
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 0x403370
sub ecx, edx
lea eax, [ebp - 0x22c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x25c]
call fcn.00403f40
cmp dword [ebp - 0x230], 7
lea eax, [ebp - 0x244]
cmova eax, dword [ebp - 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp dword [ebp - 0x230], 7
lea eax, [ebp - 0x244]
cmova eax, dword [ebp - 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
push str.python3.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esi + 8], eax
test eax, eax
je 0x4033e9
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 0x403494
mov ecx, dword [ebp - 0x234]
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 0x1f
jb 0x40367f
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.00401af0
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.00401de0
mov byte [ebp - 0x28d], 0
jmp 0x4035c6
cmp dword [esi + 4], 0
jne 0x4035bf
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.00401120
mov ecx, dword [ebp - 0x234]
mov eax, 0x7ffffffe
sub eax, ecx
mov byte [ebp - 4], 2
cmp eax, 0xc
jb 0x403684
cmp dword [ebp - 0x230], 7
lea eax, [ebp - 0x244]
push 0xc
cmova eax, dword [ebp - 0x244]
push 0x41260c
push ecx
push eax
lea eax, [ebp - 0x244]
push eax
push dword [ebp - 0x294]
lea ecx, [ebp - 0x274]
call fcn.00401af0
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.00403dc0
lea ecx, [ebp - 0x274]
call fcn.00401de0
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 0x4035b6
mov edx, dword [ebp - 0x28c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4035ac
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403689
push ecx
push edx
call fcn.0040439d
add esp, 8
mov byte [ebp - 0x28d], 0
jmp 0x4035c6
mov byte [ebp - 0x28d], 1
mov ecx, dword [ebp - 0x248]
cmp ecx, 7
jbe 0x403606
mov edx, dword [ebp - 0x25c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4035fc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40368e
push ecx
push edx
call fcn.0040439d
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 0x40365f
mov edx, dword [ebp - 0x244]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403655
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40368e
push ecx
push edx
call fcn.0040439d
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.004045ab
mov esp, ebp
pop ebp
ret
call fcn.00403bf0
call fcn.00403bf0
call fcn.0040770f
call fcn.0040770f
int3