Function at 0x40bee0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x417fd5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x15c
push ebp
xor ebp, ebp
push esi
push edi
mov dword [esp + 0x60], ebp
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x65]
mov byte [esp + 0x64], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x64]
mov dword [esp + 0x170], ebp
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov cl, byte [esp + 0xf]
push ebp
mov byte [esp + 0x34], cl
lea ecx, [esp + 0x34]
call fcn.00401d10
lea edi, [esp + 0x64]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x64]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x38]
call fcn.00402330
mov edi, 0x41c1c8
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x419218]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x170], 1
push ecx
push edx
push 0x41c1c8
lea ecx, [esp + 0x188]
call fcn.0040f0d0
cmp eax, 0xffffffff
jne 0x40c1e5
mov al, byte [esp + 0xf]
push ebp
lea ecx, [esp + 0x14]
mov byte [esp + 0x14], al
call fcn.00401d10
mov byte [esp + 0x170], 2
call fcn.0040c350
mov cl, byte [0x41fbc0]
push ebp
mov byte [esp + 0x24], cl
lea ecx, [esp + 0x24]
mov esi, eax
call fcn.00401d10
mov edx, dword [0x419218]
lea ecx, [esp + 0x20]
push edx
push ebp
push 0x41fbc0
call fcn.00401b10
cmp esi, ebp
mov byte [esp + 0x170], 3
jle 0x40c054
mov edi, 0x41c1cc
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x419218]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push 0x41c1cc
lea ecx, [esp + 0x2c]
call fcn.0040f0d0
push eax
lea eax, [esp + 0x44]
push ebp
push eax
lea ecx, [esp + 0x2c]
call fcn.0040ee90
mov ecx, dword [0x419218]
mov byte [esp + 0x170], 4
push ecx
push ebp
push eax
lea ecx, [esp + 0x2c]
call fcn.00401b10
push 1
lea ecx, [esp + 0x44]
mov byte [esp + 0x174], 3
call fcn.00401d10
dec esi
jne 0x40bfef
mov edx, dword [0x419218]
lea eax, [esp + 0x20]
push edx
push ebp
push eax
lea ecx, [esp + 0x1c]
call fcn.00401b10
cmp dword [esp + 0x180], ebp
je 0x40c088
lea ecx, [esp + 0x17c]
call fcn.0040f150
mov eax, dword [esp + 0x180]
jmp 0x40c08d
mov eax, 0x41921c
mov al, byte [eax]
cmp al, 0x5c
jne 0x40c109
push 2
lea ecx, [esp + 0x44]
push ebp
push ecx
lea ecx, [esp + 0x1c]
call fcn.0040ee90
lea edx, [esp + 0x17c]
lea eax, [esp + 0x40]
push edx
lea ecx, [esp + 0x54]
push eax
push ecx
mov byte [esp + 0x17c], 5
call fcn.0040f660
add esp, 0xc
mov edx, dword [0x419218]
lea ecx, [esp + 0x17c]
push edx
push ebp
push eax
mov byte [esp + 0x17c], 6
call fcn.00401b10
push 1
lea ecx, [esp + 0x54]
mov byte [esp + 0x174], 5
call fcn.00401d10
mov byte [esp + 0x170], 3
push 1
lea ecx, [esp + 0x44]
jmp 0x40c1ba
cmp al, 0x2e
jne 0x40c12a
mov eax, dword [0x419218]
lea ecx, [esp + 0x10]
push eax
push ebp
push ecx
lea ecx, [esp + 0x188]
call fcn.00401b10
jmp 0x40c1bf
mov eax, dword [esp + 0x18]
lea esi, [eax - 1]
cmp eax, esi
jb 0x40c14d
cmp dword [esp + 0x14], ebp
je 0x40c14d
lea ecx, [esp + 0x10]
call fcn.0040f150
mov edx, dword [esp + 0x14]
lea eax, [edx + esi]
jmp 0x40c152
mov eax, 0x41921c
cmp byte [eax], 0x5c
je 0x40c175
mov edi, 0x41c1cc
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x41c1cc
lea ecx, [esp + 0x18]
call fcn.0040f3d0
lea eax, [esp + 0x17c]
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x54]
push ecx
push edx
call fcn.0040f660
add esp, 0xc
mov ecx, dword [0x419218]
mov byte [esp + 0x170], 7
push ecx
push ebp
push eax
lea ecx, [esp + 0x188]
call fcn.00401b10
mov byte [esp + 0x170], 3
push 1
lea ecx, [esp + 0x54]
call fcn.00401d10
push 1
lea ecx, [esp + 0x24]
mov byte [esp + 0x174], 2
call fcn.00401d10
push 1
lea ecx, [esp + 0x14]
mov byte [esp + 0x174], 1
call fcn.00401d10
cmp dword [esp + 0x18c], ebp
je 0x40c2a9
mov edx, dword [esp + 0x184]
lea esi, [edx - 1]
cmp edx, esi
jb 0x40c228
cmp dword [esp + 0x180], ebp
je 0x40c228
lea ecx, [esp + 0x17c]
call fcn.0040f150
mov edx, dword [esp + 0x180]
lea eax, [edx + esi]
mov edx, dword [esp + 0x184]
jmp 0x40c22d
mov eax, 0x41921c
cmp byte [eax], 0x5c
je 0x40c2a9
mov edi, 0x41c1cc
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [0x419218]
not ecx
dec ecx
sub eax, edx
mov esi, ecx
cmp eax, esi
ja 0x40c25a
call fcn.0040f879
mov edx, dword [esp + 0x184]
cmp esi, ebp
jbe 0x40c2a9
lea ebp, [edx + esi]
push 0
push ebp
lea ecx, [esp + 0x184]
call fcn.00402510
test al, al
je 0x40c2a7
mov edx, dword [esp + 0x180]
mov eax, dword [esp + 0x184]
mov ecx, esi
mov esi, 0x41c1cc
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x180]
call fcn.004024f0
xor ebp, ebp
mov esi, dword [esp + 0x178]
mov al, byte [esp + 0x17c]
push ebp
mov ecx, esi
mov byte [esi], al
call fcn.00401d10
mov ecx, dword [0x419218]
lea edx, [esp + 0x17c]
push ecx
push ebp
push edx
mov ecx, esi
call fcn.00401b10
mov ecx, dword [esp + 0x34]
cmp ecx, ebp
je 0x40c2fc
mov al, byte [ecx - 1]
test al, al
je 0x40c2f2
cmp al, 0xff
je 0x40c2f2
dec al
mov byte [ecx - 1], al
jmp 0x40c2fc
dec ecx
push ecx
call fcn.0040f86e
add esp, 4
mov ecx, dword [esp + 0x180]
mov dword [esp + 0x34], ebp
cmp ecx, ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
je 0x40c32f
mov al, byte [ecx - 1]
test al, al
je 0x40c325
cmp al, 0xff
je 0x40c325
dec al
mov byte [ecx - 1], al
jmp 0x40c32f
dec ecx
push ecx
call fcn.0040f86e
add esp, 4
mov ecx, dword [esp + 0x168]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x168
ret