Function at 0x416f98
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x13
push 0
push 0
dec ecx
jne 0x416fa0
push ecx
push ebx
push esi
push edi
mov ebx, dword [0x418e28]
mov esi, dword [0x418e38]
xor eax, eax
push ebp
push 0x41742f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x7d0
call fcn.00405d3c
mov dl, 1
mov eax, dword [0x405018]
call fcn.00405080
mov dword [ebx], eax
lea eax, [ebp - 8]
call fcn.00405a2c
push dword [ebp - 8]
lea edx, [ebp - 0xc]
mov eax, 1
call fcn.00405b7c
push dword [ebp - 0xc]
push 0x417448
push 0x417454
mov eax, dword [0x418e30]
mov edx, 4
call fcn.00403db4
mov eax, dword [0x418e30]
mov eax, dword [eax]
call fcn.00403eec
push eax
call sub.KERNEL32.DLL_GetProcAddress
call fcn.00405e0c
call fcn.00405d70
lea ecx, [ebp - 0x14]
mov eax, dword [ebx]
xor edx, edx
call fcn.00405134
mov eax, dword [ebp - 0x14]
call fcn.00405be8
lea edx, [ebp - 0x10]
call fcn.00405ce0
push dword [ebp - 0x10]
lea ecx, [ebp - 0x18]
mov eax, dword [ebx]
mov edx, 1
call fcn.00405134
push dword [ebp - 0x18]
push 0x417460
mov eax, esi
mov edx, 3
call fcn.00403db4
lea eax, [ebp - 4]
mov edx, dword [0x418e30]
mov edx, dword [edx]
call fcn.00403c08
call fcn.00416dd4
mov eax, dword [0x418e2c]
push eax
lea ecx, [ebp - 0x1c]
mov eax, dword [ebx]
mov edx, 2
call fcn.00405134
mov eax, dword [ebp - 0x1c]
call fcn.00403cf4
sub eax, 4
push eax
lea ecx, [ebp - 0x20]
mov eax, dword [ebx]
mov edx, 2
call fcn.00405134
mov eax, dword [ebp - 0x20]
mov edx, 1
pop ecx
call fcn.00403f4c
push dword [esi]
lea edx, [ebp - 0x24]
mov eax, 1
call fcn.00405b7c
push dword [ebp - 0x24]
push 0x417448
push 0x417454
mov eax, dword [0x418e30]
mov edx, 4
call fcn.00403db4
mov eax, dword [esi]
call fcn.00405c78
test al, al
jne 0x4170ff
mov eax, dword [esi]
call fcn.00402678
mov ecx, dword [0x418e2c]
mov ecx, dword [ecx]
mov edx, dword [esi]
lea eax, [ebp - 0x28]
call fcn.00403d40
mov eax, dword [ebp - 0x28]
call fcn.00405c78
test al, al
jne 0x417137
mov ecx, dword [0x418e2c]
mov ecx, dword [ecx]
mov edx, dword [esi]
lea eax, [ebp - 0x2c]
call fcn.00403d40
mov eax, dword [ebp - 0x2c]
call fcn.00402678
call fcn.00402658
lea edx, [ebp - 0x34]
xor eax, eax
call fcn.004027d0
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x30]
call fcn.00405c3c
mov eax, dword [ebp - 0x30]
push eax
lea ecx, [ebp - 0x40]
mov eax, dword [ebx]
mov edx, 2
call fcn.00405134
mov ecx, dword [ebp - 0x40]
mov edx, dword [esi]
lea eax, [ebp - 0x3c]
call fcn.00403d40
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x38]
call fcn.00405c3c
mov edx, dword [ebp - 0x38]
pop eax
call fcn.00403e38
je 0x417390
lea ecx, [ebp - 0x44]
mov eax, dword [ebx]
mov edx, 4
call fcn.00405134
mov eax, dword [ebp - 0x44]
call fcn.00403cf4
test eax, eax
jle 0x4171d5
lea ecx, [ebp - 0x48]
mov eax, dword [ebx]
mov edx, 4
call fcn.00405134
mov eax, dword [ebp - 0x48]
push eax
mov ecx, 0x41746c
mov edx, 3
mov eax, 3
call fcn.00405540
dec eax
jne 0x4171d5
call fcn.00403a80
lea ecx, [ebp - 0x4c]
mov eax, dword [ebx]
mov edx, 0x19
call fcn.00405134
mov eax, dword [ebp - 0x4c]
call fcn.00403cf4
test eax, eax
jle 0x41724c
lea ecx, [ebp - 0x50]
mov eax, dword [ebx]
mov edx, 0x19
call fcn.00405134
mov eax, dword [ebp - 0x50]
push eax
lea ecx, [ebp - 0x54]
mov eax, dword [ebx]
mov edx, 0x18
call fcn.00405134
mov eax, dword [ebp - 0x54]
push eax
lea ecx, [ebp - 0x58]
mov eax, dword [ebx]
mov edx, 0x17
call fcn.00405134
mov eax, dword [ebp - 0x58]
call fcn.00405be8
push eax
lea ecx, [ebp - 0x5c]
mov eax, dword [ebx]
mov edx, 0x16
call fcn.00405134
mov eax, dword [ebp - 0x5c]
call fcn.00405be8
pop edx
pop ecx
call fcn.00405540
lea ecx, [ebp - 0x64]
mov eax, dword [ebx]
mov edx, 2
call fcn.00405134
mov ecx, dword [ebp - 0x64]
mov edx, dword [esi]
lea eax, [ebp - 0x60]
call fcn.00403d40
mov eax, dword [ebp - 0x60]
call fcn.00405cac
test al, al
jne 0x4172d8
push 0
mov eax, dword [0x418e30]
mov eax, dword [eax]
call fcn.00403eec
push eax
mov eax, dword [ebp - 4]
call fcn.00403eec
mov edi, eax
push edi
call sub.KERNEL32.DLL_GetCurrentDirectoryA
push 0xffffffffffffffff
lea ecx, [ebp - 0x6c]
mov eax, dword [ebx]
mov edx, 2
call fcn.00405134
mov ecx, dword [ebp - 0x6c]
mov edx, dword [esi]
lea eax, [ebp - 0x68]
call fcn.00403d40
mov eax, dword [ebp - 0x68]
call fcn.00403eec
push eax
lea edx, [ebp - 0x70]
xor eax, eax
call fcn.004027d0
mov eax, dword [ebp - 0x70]
call fcn.00403eec
push eax
call sub.KERNEL32.DLL_GetCurrentDirectoryA
push edi
call sub.KERNEL32.DLL_GetProcAddress
lea ecx, [ebp - 0x74]
mov eax, dword [ebx]
mov edx, 0x1b
call fcn.00405134
mov eax, dword [ebp - 0x74]
push eax
lea edx, [ebp - 0x78]
mov eax, 1
call fcn.00405b7c
mov edx, dword [ebp - 0x78]
pop eax
call fcn.00403e38
jne 0x417353
push 1
push dword [esi]
lea ecx, [ebp - 0x80]
mov eax, dword [ebx]
mov edx, 2
call fcn.00405134
push dword [ebp - 0x80]
push 0x417480
lea edx, [ebp - 0x84]
xor eax, eax
call fcn.004027d0
push dword [ebp - 0x84]
push 0x41748c
lea eax, [ebp - 0x7c]
mov edx, 5
call fcn.00403db4
mov eax, dword [ebp - 0x7c]
call fcn.00403eec
push eax
call sub.KERNEL32.DLL_LocalAlloc
jmp 0x41738b
push 1
lea ecx, [ebp - 0x8c]
mov eax, dword [ebx]
mov edx, 2
call fcn.00405134
mov ecx, dword [ebp - 0x8c]
mov edx, dword [esi]
lea eax, [ebp - 0x88]
call fcn.00403d40
mov eax, dword [ebp - 0x88]
call fcn.00403eec
push eax
call sub.KERNEL32.DLL_LocalAlloc
call fcn.00403a80
call fcn.00405d70
call fcn.00416e74
lea ecx, [ebp - 0x90]
mov eax, dword [ebx]
mov edx, 0x1b
call fcn.00405134
mov eax, dword [ebp - 0x90]
push eax
lea edx, [ebp - 0x94]
mov eax, 1
call fcn.00405b7c
mov edx, dword [ebp - 0x94]
pop eax
call fcn.00403e38
jne 0x417411
lea edx, [ebp - 0x98]
mov eax, 1
call fcn.004027d0
mov eax, dword [ebp - 0x98]
call fcn.00403cf4
test eax, eax
jle 0x417411
lea edx, [ebp - 0x9c]
mov eax, 1
call fcn.004027d0
mov eax, dword [ebp - 0x9c]
call fcn.00403eec
push eax
call sub.KERNEL32.DLL_GetProcAddress
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x417436
lea eax, [ebp - 0x9c]
mov edx, 0x27
call fcn.00403b94
ret