Function at 0x4061e0
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd24
mov eax, 0x48db68
push ebx
push esi
push edi
call fcn.004696b8
mov dword [ebp - 0x1c0], 2
lea edx, [ebp + 0xc]
lea eax, [ebp + 0xc]
call fcn.00474b80
inc dword [ebp - 0x1c0]
lea edx, [ebp + 8]
mov word [ebp - 0x1cc], 8
lea eax, [ebp + 8]
call fcn.00474b80
inc dword [ebp - 0x1c0]
xor edx, edx
mov word [ebp - 0x1cc], 0x14
mov dword [ebp - 0x14c], edx
lea ecx, [ebp - 0x2dc]
inc dword [ebp - 0x1c0]
inc dword [ebp - 0x1c0]
mov word [ebp - 0x1cc], 8
push ecx
push 0x100
call sub.KERNEL32.DLL_GetCurrentDirectoryA
mov word [ebp - 0x1cc], 0x20
xor eax, eax
lea edx, [ebp - 0x15c]
mov dword [ebp - 0x15c], eax
push edx
inc dword [ebp - 0x1c0]
lea eax, [ebp + 8]
call fcn.00474e58
mov edx, eax
lea eax, [ebp + 8]
mov ecx, 1
call fcn.00474f88
lea edx, [ebp - 0x15c]
push edx
mov edx, 0x48b8ee
lea eax, [ebp - 0x160]
call fcn.00474b48
inc dword [ebp - 0x1c0]
lea edx, [ebp - 0x160]
pop eax
call fcn.00474e40
push eax
dec dword [ebp - 0x1c0]
lea eax, [ebp - 0x160]
mov edx, 2
call fcn.00474d44
dec dword [ebp - 0x1c0]
lea eax, [ebp - 0x15c]
mov edx, 2
call fcn.00474d44
pop ecx
test cl, cl
je 0x40636d
mov word [ebp - 0x1cc], 0x2c
mov edx, 0x48b8f0
lea eax, [ebp - 0x164]
call fcn.00474b48
inc dword [ebp - 0x1c0]
xor eax, eax
mov dword [ebp - 0x168], eax
lea eax, [ebp + 8]
inc dword [ebp - 0x1c0]
lea edx, [ebp - 0x164]
lea ecx, [ebp - 0x168]
call fcn.00474d9c
lea edx, [ebp - 0x168]
lea eax, [ebp + 8]
call fcn.00474d74
dec dword [ebp - 0x1c0]
lea eax, [ebp - 0x168]
mov edx, 2
call fcn.00474d44
dec dword [ebp - 0x1c0]
lea eax, [ebp - 0x164]
mov edx, 2
call fcn.00474d44
mov word [ebp - 0x1cc], 0x38
xor ecx, ecx
mov dword [ebp - 0x16c], ecx
lea edx, [ebp - 0x16c]
inc dword [ebp - 0x1c0]
mov eax, dword [ebp + 0xc]
call fcn.0045f544
lea ecx, [ebp - 0x16c]
push ecx
mov edx, 0x48b8f2
lea eax, [ebp - 0x170]
call fcn.00474b48
inc dword [ebp - 0x1c0]
lea edx, [ebp - 0x170]
pop eax
call fcn.00474e40
push eax
dec dword [ebp - 0x1c0]
lea eax, [ebp - 0x170]
mov edx, 2
call fcn.00474d44
dec dword [ebp - 0x1c0]
lea eax, [ebp - 0x16c]
mov edx, 2
call fcn.00474d44
pop ecx
test cl, cl
je 0x406afa
mov dl, 1
mov eax, dword [0x455850]
call fcn.00419be8
mov word [ebp - 0x1cc], 0x44
mov esi, eax
lea eax, [ebp - 0x174]
mov edx, 0x48b8f3
call fcn.00474b48
inc dword [ebp - 0x1c0]
xor eax, eax
mov dword [ebp - 0x178], eax
lea eax, [ebp + 8]
inc dword [ebp - 0x1c0]
lea edx, [ebp - 0x174]
lea ecx, [ebp - 0x178]
call fcn.00474d9c
lea eax, [ebp - 0x178]
mov eax, dword [eax]
lea ecx, [ebp - 0x158]
mov edx, 0x3f
call fcn.0045f930
test eax, eax
mov edx, 2
sete al
and eax, 1
push eax
lea eax, [ebp - 0x178]
dec dword [ebp - 0x1c0]
call fcn.00474d44
dec dword [ebp - 0x1c0]
lea eax, [ebp - 0x174]
mov edx, 2
call fcn.00474d44
pop ecx
test cl, cl
je 0x4067b6
mov word [ebp - 0x1cc], 0x5c
xor eax, eax
mov dword [ebp - 0x17c], eax
lea ecx, [ebp - 0x17c]
inc dword [ebp - 0x1c0]
lea edx, [ebp - 0x14c]
lea eax, [ebp + 8]
call fcn.00474d9c
mov edx, dword [ebp - 0x17c]
test edx, edx
je 0x4064d3
mov ecx, dword [ebp - 0x17c]
jmp 0x4064d8
mov ecx, 0x48b8f7
push ecx
call sub.KERNEL32.DLL_SetCurrentDirectoryA
test eax, eax
lea eax, [ebp - 0x17c]
setne bl
and ebx, 1
mov edx, 2
dec dword [ebp - 0x1c0]
call fcn.00474d44
mov word [ebp - 0x1cc], 0x50
lea ecx, [ebp - 0x2dc]
push ecx
call sub.KERNEL32.DLL_SetCurrentDirectoryA
test bl, bl
jne 0x406524
mov eax, dword [ebp - 0x150]
cmp eax, 0x10
jne 0x406798
mov word [ebp - 0x1cc], 0x68
mov edx, 0x48b8f8
lea eax, [ebp - 0x180]
call fcn.00474b48
inc dword [ebp - 0x1c0]
lea edx, [ebp - 0x180]
lea eax, [ebp - 0x14c]
call fcn.00474e40
test al, al
lea eax, [ebp - 0x180]
setne dl
and edx, 1
push edx
mov edx, 2
dec dword [ebp - 0x1c0]
call fcn.00474d44
pop ecx
test ecx, ecx
je 0x406798
mov edx, 0x48b8fa
lea eax, [ebp - 0x184]
call fcn.00474b48
inc dword [ebp - 0x1c0]
lea edx, [ebp - 0x184]
lea eax, [ebp - 0x14c]
call fcn.00474e40
test al, al
lea eax, [ebp - 0x184]
setne cl
and ecx, 1
mov edx, 2
push ecx
dec dword [ebp - 0x1c0]
call fcn.00474d44
pop ecx
test ecx, ecx
je 0x406798
mov word [ebp - 0x1cc], 0x74
xor eax, eax
mov dword [ebp - 0x188], eax
lea ecx, [ebp - 0x188]
inc dword [ebp - 0x1c0]
lea edx, [ebp - 0x14c]
lea eax, [ebp + 8]
call fcn.00474d9c
lea edx, [ebp - 0x188]
mov eax, esi
mov edx, dword [edx]
call fcn.004578d8
dec dword [ebp - 0x1c0]
lea eax, [ebp - 0x188]
mov edx, 2
call fcn.00474d44
jmp 0x406798
mov word [ebp - 0x1cc], 0x80
xor ecx, ecx
mov dword [ebp - 0x18c], ecx
lea ecx, [ebp - 0x18c]
inc dword [ebp - 0x1c0]
lea edx, [ebp - 0x14c]
lea eax, [ebp + 8]
call fcn.00474d9c
mov eax, dword [ebp - 0x18c]
test eax, eax
je 0x40665d
mov edx, dword [ebp - 0x18c]
jmp 0x406662
mov edx, 0x48b8fd
push edx
call sub.KERNEL32.DLL_SetCurrentDirectoryA
test eax, eax
lea eax, [ebp - 0x18c]
setne bl
and ebx, 1
mov edx, 2
dec dword [ebp - 0x1c0]
call fcn.00474d44
lea ecx, [ebp - 0x2dc]
push ecx
call sub.KERNEL32.DLL_SetCurrentDirectoryA
test bl, bl
jne 0x4066a5
mov eax, dword [ebp - 0x150]
cmp eax, 0x10
jne 0x406798
mov word [ebp - 0x1cc], 0x8c
mov edx, 0x48b8fe
lea eax, [ebp - 0x190]
call fcn.00474b48
inc dword [ebp - 0x1c0]
lea edx, [ebp - 0x190]
lea eax, [ebp - 0x14c]
call fcn.00474e40
test al, al
lea eax, [ebp - 0x190]
setne dl
and edx, 1
push edx
mov edx, 2
dec dword [ebp - 0x1c0]
call fcn.00474d44
pop ecx
test ecx, ecx
je 0x406798
mov edx, 0x48b900
lea eax, [ebp - 0x194]
call fcn.00474b48
inc dword [ebp - 0x1c0]
lea edx, [ebp - 0x194]
lea eax, [ebp - 0x14c]
call fcn.00474e40
test al, al
lea eax, [ebp - 0x194]
setne cl
and ecx, 1
mov edx, 2
push ecx
dec dword [ebp - 0x1c0]
call fcn.00474d44
pop ecx
test ecx, ecx
je 0x406798
mov word [ebp - 0x1cc], 0x98
xor eax, eax
mov dword [ebp - 0x198], eax
lea ecx, [ebp - 0x198]
inc dword [ebp - 0x1c0]
lea edx, [ebp - 0x14c]
lea eax, [ebp + 8]
call fcn.00474d9c
lea edx, [ebp - 0x198]
mov eax, esi
mov edx, dword [edx]
call fcn.004578d8
dec dword [ebp - 0x1c0]
lea eax, [ebp - 0x198]
mov edx, 2
call fcn.00474d44
lea eax, [ebp - 0x158]
call fcn.0045f980
test eax, eax
je 0x406620
mov word [ebp - 0x1cc], 8
jmp 0x40680d
xor eax, eax
mov edx, 2
push eax
lea eax, [ebp - 0x14c]
dec dword [ebp - 0x1c0]
dec dword [ebp - 0x1c0]
call fcn.00474d44
dec dword [ebp - 0x1c0]
lea eax, [ebp + 8]
mov edx, 2
call fcn.00474d44
dec dword [ebp - 0x1c0]
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.00474d44
pop eax
mov edx, dword [ebp - 0x1dc]
mov dword fs:[0], edx
jmp 0x406bac
mov word [ebp - 0x1cc], 0xa4
xor ecx, ecx
mov dword [ebp - 0x19c], ecx
lea ecx, [ebp - 0x19c]
inc dword [ebp - 0x1c0]
lea edx, [ebp + 0xc]
lea eax, [ebp + 8]
call fcn.00474d9c
lea eax, [ebp - 0x19c]
mov eax, dword [eax]
lea ecx, [ebp - 0x158]
mov edx, 0x3f
call fcn.0045f930
test eax, eax
mov edx, 2
sete al
and eax, 1
push eax
lea eax, [ebp - 0x19c]
dec dword [ebp - 0x1c0]
call fcn.00474d44
pop ecx
test cl, cl
je 0x406a4b
mov word [ebp - 0x1cc], 0xbc
xor eax, eax
mov dword [ebp - 0x1a0], eax
lea ecx, [ebp - 0x1a0]
inc dword [ebp - 0x1c0]
lea edx, [ebp - 0x14c]
lea eax, [ebp + 8]
call fcn.00474d9c
mov edx, dword [ebp - 0x1a0]
test edx, edx
je 0x4068b2
mov ecx, dword [ebp - 0x1a0]
jmp 0x4068b7
mov ecx, 0x48b903
push ecx
call sub.KERNEL32.DLL_SetCurrentDirectoryA
test eax, eax
lea eax, [ebp - 0x1a0]
setne bl
and ebx, 1
mov edx, 2
dec dword [ebp - 0x1c0]
call fcn.00474d44
mov word [ebp - 0x1cc], 0xb0
lea ecx, [ebp - 0x2dc]
push ecx
call sub.KERNEL32.DLL_SetCurrentDirectoryA
mov eax, dword [ebp - 0x150]
cmp eax, 0x10
je 0x406a2f
test bl, bl
jne 0x406a2f
mov word [ebp - 0x1cc], 0xc8
xor edx, edx
mov dword [ebp - 0x1a4], edx
lea ecx, [ebp - 0x1a4]
inc dword [ebp - 0x1c0]
lea edx, [ebp - 0x14c]
lea eax, [ebp + 8]
call fcn.00474d9c
lea edx, [ebp - 0x1a4]
mov eax, dword [ebp + 0x10]
mov edx, dword [edx]
call fcn.004578d8
dec dword [ebp - 0x1c0]
lea eax, [ebp - 0x1a4]
mov edx, 2
call fcn.00474d44
jmp 0x406a2f
mov word [ebp - 0x1cc], 0xd4
xor ecx, ecx
mov dword [ebp - 0x1a8], ecx
lea ecx, [ebp - 0x1a8]
inc dword [ebp - 0x1c0]
lea edx, [ebp - 0x14c]
lea eax, [ebp + 8]
call fcn.00474d9c
mov eax, dword [ebp - 0x1a8]
test eax, eax
je 0x40699a
mov edx, dword [ebp - 0x1a8]
jmp 0x40699f
mov edx, 0x48b904
push edx
call sub.KERNEL32.DLL_SetCurrentDirectoryA
test eax, eax
lea eax, [ebp - 0x1a8]
setne bl
and ebx, 1
mov edx, 2
dec dword [ebp - 0x1c0]
call fcn.00474d44
lea ecx, [ebp - 0x2dc]
push ecx
call sub.KERNEL32.DLL_SetCurrentDirectoryA
mov eax, dword [ebp - 0x150]
cmp eax, 0x10
je 0x406a2f
test bl, bl
jne 0x406a2f
mov word [ebp - 0x1cc], 0xe0
xor edx, edx
mov dword [ebp - 0x1ac], edx
lea ecx, [ebp - 0x1ac]
inc dword [ebp - 0x1c0]
lea edx, [ebp - 0x14c]
lea eax, [ebp + 8]
call fcn.00474d9c
lea edx, [ebp - 0x1ac]
mov eax, dword [ebp + 0x10]
mov edx, dword [edx]
call fcn.004578d8
dec dword [ebp - 0x1c0]
lea eax, [ebp - 0x1ac]
mov edx, 2
call fcn.00474d44
lea eax, [ebp - 0x158]
call fcn.0045f980
test eax, eax
je 0x40695d
mov word [ebp - 0x1cc], 8
lea eax, [ebp - 0x158]
call fcn.0045f9a4
mov word [ebp - 0x1cc], 8
xor ebx, ebx
jmp 0x406ab9
mov eax, dword [ebp + 0x10]
xor ecx, ecx
push eax
mov eax, esi
mov edx, dword [ebp + 0xc]
push edx
mov edx, ebx
mov word [ebp - 0x1cc], 0xec
mov dword [ebp - 0x1b0], ecx
lea ecx, [ebp - 0x1b0]
inc dword [ebp - 0x1c0]
mov edi, dword [eax]
call dword [edi + 0xc]
lea eax, [ebp - 0x1b0]
mov edx, dword [eax]
push edx
call fcn.004061e0
add esp, 0xc
dec dword [ebp - 0x1c0]
lea eax, [ebp - 0x1b0]
mov edx, 2
call fcn.00474d44
inc ebx
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x14]
cmp ebx, eax
jl 0x406a63
mov ebx, esi
mov dword [ebp - 0x1b8], ebx
test ebx, ebx
je 0x406afa
mov eax, dword [ebx]
mov dword [ebp - 0x1b4], eax
mov word [ebp - 0x1cc], 0x104
mov edx, 3
mov eax, dword [ebp - 0x1b8]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebp - 0x1cc], 0xf8
mov eax, dword [ebp + 0x10]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x406b5a
mov al, 1
mov edx, 2
push eax
lea eax, [ebp - 0x14c]
dec dword [ebp - 0x1c0]
dec dword [ebp - 0x1c0]
call fcn.00474d44
dec dword [ebp - 0x1c0]
lea eax, [ebp + 8]
mov edx, 2
call fcn.00474d44
dec dword [ebp - 0x1c0]
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.00474d44
pop eax
mov edx, dword [ebp - 0x1dc]
mov dword fs:[0], edx
jmp 0x406bac
xor eax, eax
mov edx, 2
push eax
lea eax, [ebp - 0x14c]
dec dword [ebp - 0x1c0]
dec dword [ebp - 0x1c0]
call fcn.00474d44
dec dword [ebp - 0x1c0]
lea eax, [ebp + 8]
mov edx, 2
call fcn.00474d44
dec dword [ebp - 0x1c0]
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.00474d44
pop eax
mov edx, dword [ebp - 0x1dc]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret