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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x405c11
mov eax, dword fs:[0]
push eax
sub esp, 0x288
mov eax, dword [0x408040]
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.004017c0
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 0x402bb0
sub ecx, edx
lea eax, [ebp - 0x22c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x25c]
call fcn.004035b0
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 0x402c0e
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 0x402cb9
mov ecx, dword [ebp - 0x234]
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 0x1f
jb 0x402ea4
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.00401870
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.00401b20
mov byte [ebp - 0x28d], 0
jmp 0x402deb
cmp dword [esi + 4], 0
jne 0x402de4
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 0x402ea9
cmp dword [ebp - 0x230], 7
lea eax, [ebp - 0x244]
push 0xc
cmova eax, dword [ebp - 0x244]
push 0x406244
push ecx
push eax
lea eax, [ebp - 0x244]
push eax
push dword [ebp - 0x294]
lea ecx, [ebp - 0x274]
call fcn.00401870
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.00403430
lea ecx, [ebp - 0x274]
call fcn.00401b20
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 0x402ddb
mov edx, dword [ebp - 0x28c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402dd1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402eae
push ecx
push edx
call fcn.00403d0c
add esp, 8
mov byte [ebp - 0x28d], 0
jmp 0x402deb
mov byte [ebp - 0x28d], 1
mov ecx, dword [ebp - 0x248]
cmp ecx, 7
jbe 0x402e2b
mov edx, dword [ebp - 0x25c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402e21
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402eb3
push ecx
push edx
call fcn.00403d0c
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 0x402e84
mov edx, dword [ebp - 0x244]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402e7a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402eb3
push ecx
push edx
call fcn.00403d0c
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.00403cc9
mov esp, ebp
pop ebp
ret
call fcn.00403410
call fcn.00403410
call fcn.00404ac0
call fcn.00404ac0
int3