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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x409f81
mov eax, dword fs:[0]
push eax
sub esp, 0x288
mov eax, dword [0x410040]
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.00402060
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 0x4043f0
sub ecx, edx
lea eax, [ebp - 0x22c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x25c]
call fcn.004050d0
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 0x40444e
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 0x4044f9
mov ecx, dword [ebp - 0x234]
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 0x1f
jb 0x4046e4
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.00402110
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.00402a50
mov byte [ebp - 0x28d], 0
jmp 0x40462b
cmp dword [esi + 4], 0
jne 0x404624
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.004014d0
mov ecx, dword [ebp - 0x234]
mov eax, 0x7ffffffe
sub eax, ecx
mov byte [ebp - 4], 2
cmp eax, 0xc
jb 0x4046e9
cmp dword [ebp - 0x230], 7
lea eax, [ebp - 0x244]
push 0xc
cmova eax, dword [ebp - 0x244]
push 0x40b44c
push ecx
push eax
lea eax, [ebp - 0x244]
push eax
push dword [ebp - 0x294]
lea ecx, [ebp - 0x274]
call fcn.00402110
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.00404f50
lea ecx, [ebp - 0x274]
call fcn.00402a50
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 0x40461b
mov edx, dword [ebp - 0x28c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x404611
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4046ee
push ecx
push edx
call fcn.004078e7
add esp, 8
mov byte [ebp - 0x28d], 0
jmp 0x40462b
mov byte [ebp - 0x28d], 1
mov ecx, dword [ebp - 0x248]
cmp ecx, 7
jbe 0x40466b
mov edx, dword [ebp - 0x25c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x404661
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4046f3
push ecx
push edx
call fcn.004078e7
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 0x4046c4
mov edx, dword [ebp - 0x244]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4046ba
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4046f3
push ecx
push edx
call fcn.004078e7
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.004078a4
mov esp, ebp
pop ebp
ret
call fcn.00404dd0
call fcn.00404dd0
call fcn.00408820
call fcn.00408820
int3