Function at 0x419468
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
sub esp, 0x50
mov eax, 0x429e1f
call fcn.0041bd3c
sub esp, 0x144
push ebx
xor ebx, ebx
mov dword [ebp + 0x50], ebx
push esi
mov dword [ebp + 0x24], ebx
mov dword [ebp + 0x28], ebx
push edi
mov dword [ebp + 0x28], 0xf
mov dword [ebp + 0x24], ebx
mov byte [ebp + 0x14], bl
mov dword [ebp - 4], 1
mov esi, dword [ebp + 0x64]
test esi, esi
je 0x4194b2
push esi
call fcn.00406b76
pop ecx
push eax
push esi
jmp 0x4194ea
lea eax, [ebp - 0x150]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x4194f2
cmp byte [ebp - 0x150], 0
jne 0x4194d5
mov eax, ebx
jmp 0x4194e2
lea eax, [ebp - 0x150]
push eax
call fcn.0041b4b0
pop ecx
push eax
lea eax, [ebp - 0x150]
push eax
lea ecx, [ebp + 0x14]
call fcn.00406721
push dword [ebp + 0x60]
lea ecx, [ebp + 0x38]
call fcn.004014e6
mov byte [ebp - 4], 2
push 0x10
pop edi
push dword [0x4371e0]
cmp dword [0x4371e4], edi
mov eax, 0x4371d0
cmovae eax, dword [0x4371d0]
push ebx
push eax
lea ecx, [ebp + 0x38]
call fcn.00413a37
cmp eax, 0xffffffff
je 0x4195d1
mov edx, dword [ebp + 0x4c]
mov esi, dword [ebp + 0x38]
cmp edx, edi
lea eax, [ebp + 0x38]
cmovae eax, esi
cmp byte [eax], 0x2f
je 0x4195bc
cmp edx, edi
lea eax, [ebp + 0x38]
cmovae eax, esi
cmp byte [eax], 0x5c
je 0x4195bc
cmp edx, edi
lea eax, [ebp + 0x38]
cmovae eax, esi
cmp byte [eax], 0
je 0x41956a
cmp edx, edi
lea eax, [ebp + 0x38]
cmovae eax, esi
cmp byte [eax + 1], 0x3a
je 0x4195bc
cmp dword [ebp + 0x28], edi
lea ecx, [ebp + 0x14]
cmovae ecx, dword [ebp + 0x14]
cmp edx, edi
lea eax, [ebp + 0x38]
push ecx
cmovae eax, esi
push eax
push dword [ebp + 0x5c]
call fcn.004185fe
add esp, 0xc
mov dword [ebp + 0x50], 1
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x38]
call fcn.0040165f
mov byte [ebp - 4], bl
lea ecx, [ebp + 0x14]
call fcn.0040165f
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 0x5c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add ebp, 0x54
leave
ret
cmp edx, edi
lea eax, [ebp + 0x38]
cmovae eax, esi
push eax
push dword [ebp + 0x5c]
call fcn.004182e6
pop ecx
pop ecx
jmp 0x419589
push dword [ebp + 0x68]
lea ecx, [ebp + 0x2c]
call fcn.0041533a
mov byte [ebp - 4], 3
lea eax, [ebp + 0x14]
push eax
push 1
push dword [ebp + 0x2c]
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp + 0x2c]
call fcn.00415e85
call fcn.0041a1da
cmp eax, 2
jae 0x41961a
push str.Local12232
push 1
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
je 0x41961a
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
call fcn.0041a1da
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 2
jae 0x419633
lea eax, [ebp]
push eax
mov dword [ebp], ebx
call esi
call fcn.0041a1da
cmp eax, 2
jae 0x419646
lea eax, [ebp + 0xc]
push eax
mov dword [ebp + 0xc], ebx
call esi
call fcn.0041a1da
cmp eax, 2
jae 0x419659
lea eax, [ebp + 4]
push eax
mov dword [ebp + 4], ebx
call esi
call fcn.0041a1da
cmp eax, 2
jae 0x41966c
lea eax, [ebp + 0x10]
push eax
mov dword [ebp + 0x10], ebx
call esi
mov esi, dword [ebp + 0x2c]
cmp esi, dword [ebp + 0x30]
je 0x41977f
mov ebx, dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp dword [ebp + 0x4c], edi
lea eax, [ebp + 0x38]
cmovae eax, dword [ebp + 0x38]
cmp dword [esi + 0x14], edi
jb 0x419691
mov ecx, dword [esi]
jmp 0x419693
mov ecx, esi
push eax
push ecx
lea eax, [ebp - 0x24]
push str._s__s
push eax
call fcn.0040b674
mov byte [ebp - 4], 4
cmp dword [ebp - 0x10], edi
lea eax, [ebp - 0x24]
cmovae eax, dword [ebp - 0x24]
push 0
push eax
call fcn.004180ef
add esp, 0x18
test al, al
jne 0x4197ca
call fcn.0041a1da
cmp eax, 3
jae 0x4196d9
push str.Local391
push 0
push 0
call ebx
call fcn.0041a1da
cmp eax, 2
jae 0x4196f9
push str.965965
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
test eax, eax
je 0x4196f9
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
call fcn.0041a1da
cmp eax, 3
jae 0x41970e
push str.Local908
push 0
push 0
call ebx
xor ecx, ecx
mov byte [ebp + 0x67], cl
cmp byte [ebp + 0x67], cl
je 0x419748
mov edi, 0xd5
push ecx
push ecx
push ecx
push ecx
push ecx
call dword [sym.imp.USER32.dll_DialogBoxParamA]
push 0xd5
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
push eax
push eax
push eax
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
pop ecx
dec edi
jne 0x41971d
push 0x10
pop edi
call fcn.0041a1da
cmp eax, 2
jae 0x419767
push ecx
push ecx
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
je 0x419767
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x24]
call fcn.0040165f
add esi, 0x18
cmp esi, dword [ebp + 0x30]
jne 0x41967e
push dword [ebp + 0x60]
lea eax, [ebp - 0x4c]
push str.file__s_not_found_in_search_path
push eax
call fcn.0040b674
add esp, 0xc
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], edi
jb 0x41979e
mov eax, dword [eax]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x34]
call fcn.0041bb84
mov byte [ebp - 4], 6
mov dword [ebp - 0x34], vtable.std::runtime_error.0
mov byte [ebp - 4], 5
push 0x435fe4
lea eax, [ebp - 0x34]
push eax
call fcn.0041bcde
cmp dword [ebp - 0x10], edi
lea eax, [ebp - 0x24]
cmovae eax, dword [ebp - 0x24]
push eax
push dword [ebp + 0x5c]
call fcn.004182e6
pop ecx
pop ecx
mov dword [ebp + 0x50], 1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x24]
call fcn.0040165f
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x2c]
call fcn.00411418
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x38]
call fcn.0040165f
mov byte [ebp - 4], 0
jmp 0x41959f