Function at 0x413b92
Capabilities:
Get common file path

Disassembly:
mov eax, 0x423c7e
call fcn.00415c8c
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 0x413be4
push esi
call fcn.0040276c
pop ecx
push eax
push esi
jmp 0x413c20
lea eax, [esp + 0x80]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x413c29
cmp byte [esp + 0x80], 0
jne 0x413c09
mov eax, ebx
jmp 0x413c17
lea eax, [esp + 0x80]
push eax
call fcn.00415400
pop ecx
push eax
lea eax, [esp + 0x84]
push eax
lea ecx, [esp + 0x40]
call fcn.004022e2
push dword [esp + 0x19c]
lea ecx, [esp + 0x18]
call fcn.00401391
mov byte [esp + 0x18c], 2
mov edx, dword [0x4301fc]
test edx, edx
jne 0x413c58
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [0x4301fc]
inc edx
mov eax, 0x3b2
cmove edx, eax
mov eax, 0xb0
cmp edx, eax
cmove edx, eax
mov eax, dword [0x4301f8]
mov ecx, eax
not ecx
and ecx, 0x3b9
neg ecx
sbb ecx, ecx
neg ecx
add eax, eax
or eax, ecx
mov dword [0x4301fc], edx
mov dword [0x4301f8], eax
test edx, edx
jne 0x413ca6
push 0x3c2
mov eax, 0x427394
push eax
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0x10
pop ebp
push dword [0x430228]
cmp dword [0x43022c], ebp
mov eax, 0x430218
cmovae eax, dword [0x430218]
push ebx
push eax
lea ecx, [esp + 0x20]
call fcn.0040e6be
cmp eax, 0xffffffff
je 0x413da2
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 0x413d88
cmp edx, ebp
lea eax, [esp + 0x14]
cmovae eax, esi
cmp byte [eax], 0x5c
je 0x413d88
cmp edx, ebp
lea eax, [esp + 0x14]
cmovae eax, esi
cmp byte [eax], 0
je 0x413d1e
cmp edx, ebp
lea eax, [esp + 0x14]
cmovae eax, esi
cmp byte [eax + 1], 0x3a
je 0x413d88
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.00412f1f
add esp, 0xc
mov dword [esp + 0xc], 1
mov byte [esp + 0x18c], 1
lea ecx, [esp + 0x14]
call fcn.00401530
mov byte [esp + 0x18c], bl
lea ecx, [esp + 0x38]
call fcn.00401530
mov ecx, dword [esp + 0x184]
mov eax, dword [esp + 0x198]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
leave
ret
cmp edx, ebp
lea eax, [esp + 0x14]
cmovae eax, esi
push eax
push dword [esp + 0x19c]
call fcn.00412da2
pop ecx
pop ecx
jmp 0x413d45
push dword [esp + 0x1a4]
lea ecx, [esp + 0x30]
call fcn.0040ff5f
mov byte [esp + 0x18c], 3
lea eax, [esp + 0x38]
push eax
push 1
push dword [esp + 0x34]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x3c]
call fcn.00410a41
mov esi, dword [esp + 0x2c]
cmp esi, dword [esp + 0x30]
je 0x413ea0
mov edx, 0x1da
mov eax, dword [0x4301f8]
mov ecx, eax
not ecx
and ecx, 0x3b9
neg ecx
sbb ecx, ecx
add eax, eax
neg ecx
or eax, ecx
mov dword [0x4301f8], eax
mov eax, dword [0x4301fc]
cmp eax, edx
cmove eax, edx
mov dword [0x4301fc], eax
test eax, eax
jne 0x413e23
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4301fc]
or eax, 0x241
cmp dword [esp + 0x28], ebp
mov dword [0x4301fc], eax
lea eax, [esp + 0x14]
cmovae eax, dword [esp + 0x14]
cmp dword [esi + 0x14], ebp
jb 0x413e43
mov ecx, dword [esi]
jmp 0x413e45
mov ecx, esi
push eax
push ecx
lea eax, [esp + 0x58]
push str._s__s
push eax
call fcn.0040813e
mov byte [esp + 0x19c], 4
cmp dword [esp + 0x74], ebp
lea eax, [esp + 0x60]
cmovae eax, dword [esp + 0x60]
push ebx
push eax
call fcn.004129fc
add esp, 0x18
test al, al
jne 0x413f01
mov byte [esp + 0x18c], 3
lea ecx, [esp + 0x50]
call fcn.00401530
add esi, 0x18
mov edx, 0x1da
cmp esi, dword [esp + 0x30]
jne 0x413de6
push dword [esp + 0x19c]
lea eax, [esp + 0x6c]
push str.file__s_not_found_in_search_path
push eax
call fcn.0040813e
add esp, 0xc
mov byte [esp + 0x18c], 5
cmp dword [eax + 0x14], ebp
jb 0x413ec8
mov eax, dword [eax]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x54]
call fcn.00415ad4
mov byte [esp + 0x18c], 6
mov dword [esp + 0x50], vtable.std::runtime_error.0
mov byte [esp + 0x18c], 5
push 0x42ed9c
lea eax, [esp + 0x54]
push eax
call fcn.00415c2e
cmp dword [esp + 0x64], ebp
lea eax, [esp + 0x50]
cmovae eax, dword [esp + 0x50]
push eax
push dword [esp + 0x19c]
call fcn.00412da2
pop ecx
pop ecx
mov dword [esp + 0xc], 1
mov byte [esp + 0x18c], 3
lea ecx, [esp + 0x50]
call fcn.00401530
mov byte [esp + 0x18c], 2
lea ecx, [esp + 0x2c]
call fcn.0040c73e
jmp 0x413d4d