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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x405f51
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 + 0x54]
push eax
lea ecx, [ebp - 0x244]
call fcn.00401960
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 0x402da0
sub ecx, edx
lea eax, [ebp - 0x22c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x25c]
call fcn.004037a0
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 0x402dfe
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 0x402ea9
mov ecx, dword [ebp - 0x234]
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 0x1f
jb 0x403094
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.00401a10
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.00401d10
mov byte [ebp - 0x28d], 0
jmp 0x402fdb
cmp dword [esi + 4], 0
jne 0x402fd4
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.004011b0
mov ecx, dword [ebp - 0x234]
mov eax, 0x7ffffffe
sub eax, ecx
mov byte [ebp - 4], 2
cmp eax, 0xc
jb 0x403099
cmp dword [ebp - 0x230], 7
lea eax, [ebp - 0x244]
push 0xc
cmova eax, dword [ebp - 0x244]
push 0x40725c
push ecx
push eax
lea eax, [ebp - 0x244]
push eax
push dword [ebp - 0x294]
lea ecx, [ebp - 0x274]
call fcn.00401a10
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.00403620
lea ecx, [ebp - 0x274]
call fcn.00401d10
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 0x402fcb
mov edx, dword [ebp - 0x28c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402fc1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40309e
push ecx
push edx
call fcn.00403f93
add esp, 8
mov byte [ebp - 0x28d], 0
jmp 0x402fdb
mov byte [ebp - 0x28d], 1
mov ecx, dword [ebp - 0x248]
cmp ecx, 7
jbe 0x40301b
mov edx, dword [ebp - 0x25c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403011
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4030a3
push ecx
push edx
call fcn.00403f93
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 0x403074
mov edx, dword [ebp - 0x244]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40306a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4030a3
push ecx
push edx
call fcn.00403f93
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.00403f50
mov esp, ebp
pop ebp
ret
call fcn.00403600
call fcn.00403600
call fcn.00404d70
call fcn.00404d70
int3