Function at 0x40b700
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x417075
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, 0x41b1c8
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x418218]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x170], 1
push ecx
push edx
push 0x41b1c8
lea ecx, [esp + 0x188]
call fcn.0040e1f0
cmp eax, 0xffffffff
jne 0x40ba05
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.0040bb70
mov cl, byte [0x41eb30]
push ebp
mov byte [esp + 0x24], cl
lea ecx, [esp + 0x24]
mov esi, eax
call fcn.00401d10
mov edx, dword [0x418218]
lea ecx, [esp + 0x20]
push edx
push ebp
push 0x41eb30
call fcn.00401b10
cmp esi, ebp
mov byte [esp + 0x170], 3
jle 0x40b874
mov edi, 0x41b1cc
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x418218]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push 0x41b1cc
lea ecx, [esp + 0x2c]
call fcn.0040e1f0
push eax
lea eax, [esp + 0x44]
push ebp
push eax
lea ecx, [esp + 0x2c]
call fcn.0040dfb0
mov ecx, dword [0x418218]
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 0x40b80f
mov edx, dword [0x418218]
lea eax, [esp + 0x20]
push edx
push ebp
push eax
lea ecx, [esp + 0x1c]
call fcn.00401b10
cmp dword [esp + 0x180], ebp
je 0x40b8a8
lea ecx, [esp + 0x17c]
call fcn.0040e270
mov eax, dword [esp + 0x180]
jmp 0x40b8ad
mov eax, 0x41821c
mov al, byte [eax]
cmp al, 0x5c
jne 0x40b929
push 2
lea ecx, [esp + 0x44]
push ebp
push ecx
lea ecx, [esp + 0x1c]
call fcn.0040dfb0
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.0040e780
add esp, 0xc
mov edx, dword [0x418218]
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 0x40b9da
cmp al, 0x2e
jne 0x40b94a
mov eax, dword [0x418218]
lea ecx, [esp + 0x10]
push eax
push ebp
push ecx
lea ecx, [esp + 0x188]
call fcn.00401b10
jmp 0x40b9df
mov eax, dword [esp + 0x18]
lea esi, [eax - 1]
cmp eax, esi
jb 0x40b96d
cmp dword [esp + 0x14], ebp
je 0x40b96d
lea ecx, [esp + 0x10]
call fcn.0040e270
mov edx, dword [esp + 0x14]
lea eax, [edx + esi]
jmp 0x40b972
mov eax, 0x41821c
cmp byte [eax], 0x5c
je 0x40b995
mov edi, 0x41b1cc
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x41b1cc
lea ecx, [esp + 0x18]
call fcn.0040e4f0
lea eax, [esp + 0x17c]
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x54]
push ecx
push edx
call fcn.0040e780
add esp, 0xc
mov ecx, dword [0x418218]
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 0x40bac9
mov edx, dword [esp + 0x184]
lea esi, [edx - 1]
cmp edx, esi
jb 0x40ba48
cmp dword [esp + 0x180], ebp
je 0x40ba48
lea ecx, [esp + 0x17c]
call fcn.0040e270
mov edx, dword [esp + 0x180]
lea eax, [edx + esi]
mov edx, dword [esp + 0x184]
jmp 0x40ba4d
mov eax, 0x41821c
cmp byte [eax], 0x5c
je 0x40bac9
mov edi, 0x41b1cc
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [0x418218]
not ecx
dec ecx
sub eax, edx
mov esi, ecx
cmp eax, esi
ja 0x40ba7a
call fcn.0040e999
mov edx, dword [esp + 0x184]
cmp esi, ebp
jbe 0x40bac9
lea ebp, [edx + esi]
push 0
push ebp
lea ecx, [esp + 0x184]
call fcn.00402510
test al, al
je 0x40bac7
mov edx, dword [esp + 0x180]
mov eax, dword [esp + 0x184]
mov ecx, esi
mov esi, 0x41b1cc
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 [0x418218]
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 0x40bb1c
mov al, byte [ecx - 1]
test al, al
je 0x40bb12
cmp al, 0xff
je 0x40bb12
dec al
mov byte [ecx - 1], al
jmp 0x40bb1c
dec ecx
push ecx
call fcn.0040e98e
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 0x40bb4f
mov al, byte [ecx - 1]
test al, al
je 0x40bb45
cmp al, 0xff
je 0x40bb45
dec al
mov byte [ecx - 1], al
jmp 0x40bb4f
dec ecx
push ecx
call fcn.0040e98e
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