Function at 0x412950
Capabilities:
Get common file path
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x422ca9
call fcn.00414d1c
sub esp, 0x178
push ebx
xor ebx, ebx
mov dword [esp + 4], ebx
push ebp
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
push esi
mov dword [esp + 0x4c], 0xf
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
mov dword [esp + 0x18c], 1
mov esi, dword [esp + 0x1a0]
test esi, esi
je 0x4129a2
push esi
call fcn.00402653
pop ecx
push eax
push esi
jmp 0x4129de
lea eax, [esp + 0x80]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x4129e7
cmp byte [esp + 0x80], 0
jne 0x4129c7
mov eax, ebx
jmp 0x4129d5
lea eax, [esp + 0x80]
push eax
call fcn.00414490
pop ecx
push eax
lea eax, [esp + 0x84]
push eax
lea ecx, [esp + 0x40]
call fcn.004021fe
push dword [esp + 0x19c]
lea ecx, [esp + 0x18]
call fcn.00401391
mov byte [esp + 0x18c], 2
push 0x10
pop ebp
push dword [0x42f228]
cmp dword [0x42f22c], ebp
mov eax, 0x42f218
cmovae eax, dword [0x42f218]
push ebx
push eax
lea ecx, [esp + 0x20]
call fcn.0040d7ea
cmp eax, 0xffffffff
je 0x412ae9
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x14]
cmp edx, ebp
lea eax, [esp + 0x14]
cmovae eax, esi
cmp byte [eax], 0x2f
je 0x412acf
cmp edx, ebp
lea eax, [esp + 0x14]
cmovae eax, esi
cmp byte [eax], 0x5c
je 0x412acf
cmp edx, ebp
lea eax, [esp + 0x14]
cmovae eax, esi
cmp byte [eax], 0
je 0x412a73
cmp edx, ebp
lea eax, [esp + 0x14]
cmovae eax, esi
cmp byte [eax + 1], 0x3a
je 0x412acf
cmp dword [esp + 0x4c], ebp
lea ecx, [esp + 0x38]
cmovae ecx, dword [esp + 0x38]
cmp edx, ebp
lea eax, [esp + 0x14]
push ecx
cmovae eax, esi
push eax
push dword [esp + 0x1a0]
call fcn.00411c87
add esp, 0xc
mov dword [esp + 0xc], 1
mov byte [esp + 0x18c], 1
lea ecx, [esp + 0x14]
call fcn.0040150a
mov byte [esp + 0x18c], bl
lea ecx, [esp + 0x38]
call fcn.0040150a
mov eax, dword [esp + 0x198]
jmp 0x412d05
cmp edx, ebp
lea eax, [esp + 0x14]
cmovae eax, esi
push eax
push dword [esp + 0x19c]
call fcn.00411b0a
pop ecx
pop ecx
jmp 0x412a9a
push dword [esp + 0x1a4]
lea ecx, [esp + 0x30]
call fcn.0040f0c4
mov byte [esp + 0x18c], 3
mov edx, dword [0x42f1fc]
shl edx, 0x19
or edx, 1
push 0x49
pop eax
cmp edx, eax
cmove edx, eax
or edx, 0x2af
mov eax, 0x1f4
cmp edx, eax
cmove edx, eax
or edx, 0x379
push 0x46
pop eax
cmp edx, eax
cmove edx, eax
mov dword [0x42f1fc], edx
test edx, edx
jne 0x412b4a
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [0x42f1fc]
mov ecx, dword [0x42f1f8]
inc edx
mov eax, 0x2b1
cmove edx, eax
mov eax, ecx
not eax
mov esi, 0x2b2
and eax, esi
neg eax
sbb eax, eax
push edi
mov edi, 0x80000000
and eax, edi
add eax, edi
shr ecx, 1
or ecx, eax
inc edx
lea eax, [esi - 0x26]
cmove edx, eax
mov eax, ecx
not eax
and eax, esi
neg eax
sbb eax, eax
and eax, edi
add eax, edi
shr ecx, 1
or ecx, eax
mov dword [0x42f1fc], edx
mov dword [0x42f1f8], ecx
test edx, edx
jne 0x412bb2
push 0x212
mov eax, 0x426390
push eax
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
lea eax, [esp + 0x3c]
push eax
xor edi, edi
inc edi
push edi
push dword [esp + 0x38]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x40]
call fcn.0040fc31
mov esi, dword [esp + 0x30]
jmp 0x412c33
cmp dword [esp + 0x2c], ebp
lea eax, [esp + 0x18]
cmovae eax, dword [esp + 0x18]
cmp dword [esi + 0x14], ebp
jb 0x412be9
mov ecx, dword [esi]
jmp 0x412beb
mov ecx, esi
push eax
push ecx
lea eax, [esp + 0x5c]
push str._s__s
push eax
call fcn.004078b1
mov byte [esp + 0x1a0], 4
cmp dword [esp + 0x78], ebp
lea eax, [esp + 0x64]
cmovae eax, dword [esp + 0x64]
push ebx
push eax
call fcn.00411929
add esp, 0x18
test al, al
jne 0x412c9a
mov byte [esp + 0x190], 3
lea ecx, [esp + 0x54]
call fcn.0040150a
add esi, 0x18
cmp esi, dword [esp + 0x34]
jne 0x412bd3
push dword [esp + 0x1a0]
lea eax, [esp + 0x70]
push str.file__s_not_found_in_search_path
push eax
call fcn.004078b1
add esp, 0xc
mov byte [esp + 0x190], 5
cmp dword [eax + 0x14], ebp
jb 0x412c61
mov eax, dword [eax]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x58]
call fcn.00414b64
mov byte [esp + 0x190], 6
mov dword [esp + 0x54], vtable.std::runtime_error.0
mov byte [esp + 0x190], 5
push 0x42dd10
lea eax, [esp + 0x58]
push eax
call fcn.00414cbe
cmp dword [esp + 0x68], ebp
lea eax, [esp + 0x54]
cmovae eax, dword [esp + 0x54]
push eax
push dword [esp + 0x1a0]
call fcn.00411b0a
pop ecx
pop ecx
mov dword [esp + 0x10], edi
mov byte [esp + 0x190], 3
lea ecx, [esp + 0x54]
call fcn.0040150a
mov byte [esp + 0x190], 2
lea ecx, [esp + 0x30]
call fcn.0040bdf4
mov byte [esp + 0x190], 1
lea ecx, [esp + 0x18]
call fcn.0040150a
mov byte [esp + 0x190], bl
lea ecx, [esp + 0x3c]
call fcn.0040150a
mov eax, dword [esp + 0x19c]
pop edi
mov ecx, dword [esp + 0x184]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
leave
ret