Function at 0x4676f7
Capabilities:
Set current directory
Set file attributes

Disassembly:
mov eax, 0x4b565c
call fcn.00483228
sub esp, 0x14
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], 6
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
jne 0x46771d
push 4
pop eax
jmp 0x467b8a
mov esi, dword [ebp + 0xc]
push ecx
mov ebx, esp
mov dword [ebp - 0x1c], esp
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push esi
call fcn.0049d64d
push ebx
call fcn.00447289
pop ecx
pop ecx
call fcn.00446d96
cmp eax, edi
pop ecx
jne 0x46777b
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push esi
call fcn.0049d64d
lea eax, [ebp - 0x1c]
push eax
call fcn.00447289
pop ecx
pop ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ebx, eax
lea ecx, [ebp - 0x1c]
neg ebx
sbb bl, bl
inc bl
call fcn.0049d8d8
test bl, bl
je 0x46777b
push 0xf
jmp 0x467717
mov eax, dword [esi]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [ebp + 0x10]
push 1
pop ebx
cmp eax, ebx
jne 0x4677d8
push ecx
mov ecx, esp
mov dword [ebp + 0x10], esp
push esi
call fcn.0049d64d
call fcn.00446e8e
cmp eax, edi
pop ecx
jne 0x467715
push dword [ebp + 0x14]
push edi
push esi
push dword [ebp + 8]
call fcn.00467b99
add esp, 0x10
cmp eax, edi
jne 0x4677c8
push 3
jmp 0x467717
dec eax
neg eax
sbb eax, eax
and eax, 8
add eax, 0xb
jmp 0x467b8a
cmp eax, 5
jne 0x467854
push ecx
mov ecx, esp
mov dword [ebp + 0x10], esp
push esi
call fcn.0049d64d
call fcn.00446e8e
cmp eax, edi
pop ecx
je 0x467829
push ecx
mov ecx, esp
mov dword [ebp + 0x14], esp
push esi
call fcn.0049d64d
push ecx
mov dword [ebp - 4], edi
mov ecx, esp
mov dword [ebp + 0x10], esp
push dword [ebp + 8]
call fcn.0049d64d
or dword [ebp - 4], 0xffffffff
call fcn.004487d7
neg eax
sbb eax, eax
pop ecx
and al, 0xfc
pop ecx
add eax, 0xd
jmp 0x467b8a
push dword [ebp + 0x14]
push edi
push esi
push dword [ebp + 8]
call fcn.00467b99
add esp, 0x10
cmp eax, edi
jne 0x467844
xor eax, eax
jmp 0x467b8a
dec eax
neg eax
sbb eax, eax
and eax, 4
add eax, 9
jmp 0x467b8a
cmp eax, 4
jne 0x46788f
push ecx
mov ecx, esp
mov dword [ebp + 0x14], esp
push esi
call fcn.0049d64d
push ecx
mov dword [ebp - 4], ebx
mov ecx, esp
mov dword [ebp + 0x10], esp
push dword [ebp + 8]
call fcn.0049d64d
or dword [ebp - 4], 0xffffffff
call fcn.0044840a
neg eax
sbb eax, eax
pop ecx
and al, 0xec
pop ecx
add eax, 0x1b
jmp 0x467b8a
push 2
pop ebx
cmp eax, ebx
jne 0x467a67
mov edi, dword [ebp + 8]
push ecx
mov ecx, esp
mov dword [ebp + 0x10], esp
push edi
call fcn.0049d64d
call fcn.004673e9
fstp qword [ebp - 0x20]
mov ecx, esp
mov dword [ebp + 8], esp
push esi
call fcn.0049d64d
call fcn.004673e9
fld qword [ebp - 0x20]
fcomp qword [0x4bb2e8]
pop ecx
fnstsw ax
sahf
jbe 0x467983
fcom qword [0x4bb2e8]
fnstsw ax
sahf
jbe 0x4678f2
fld qword [ebp - 0x20]
fcomp st(1)
fnstsw ax
sahf
jae 0x4678f2
fstp st(0)
mov eax, ebx
jmp 0x467b8a
fcom qword [0x4bb2e8]
fnstsw ax
sahf
jbe 0x467983
fld qword [ebp - 0x20]
fcomp st(1)
fnstsw ax
sahf
fstp st(0)
jne 0x467985
and dword [ebp + 8], 0
and dword [ebp + 0x10], 0
lea eax, [ebp + 8]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push edi
call fcn.0049d64d
call fcn.00447cee
pop ecx
lea eax, [ebp + 0x10]
pop ecx
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push esi
call fcn.0049d64d
call fcn.00447cee
mov eax, dword [ebp + 8]
pop ecx
cmp eax, dword [ebp + 0x10]
pop ecx
je 0x4678eb
push dword [ebp + 0x14]
push 0
push esi
push edi
call fcn.00467b99
add esp, 0x10
test eax, eax
jne 0x467965
push 1
jmp 0x467717
cmp eax, 1
jne 0x467971
push 0xa
jmp 0x467717
xor ecx, ecx
cmp eax, ebx
setne cl
dec ecx
and ecx, ebx
add ecx, 0x15
jmp 0x467b88
fstp st(0)
mov eax, dword [0x4e43a4]
mov dword [ebp + 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp + 8], eax
push ecx
mov byte [ebp - 4], 3
mov ecx, esp
mov dword [ebp + 0xc], esp
push edi
call fcn.0049d64d
lea eax, [ebp + 0xc]
push eax
call fcn.004674ce
pop ecx
pop ecx
push eax
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 4
call fcn.0049d9c5
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 3
call fcn.0049d8d8
push ecx
mov ecx, esp
mov dword [ebp + 0xc], esp
push esi
call fcn.0049d64d
lea eax, [ebp + 0xc]
push eax
call fcn.004674ce
pop ecx
pop ecx
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 5
call fcn.0049d9c5
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 3
call fcn.0049d8d8
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0x10]
push eax
call fcn.004675f0
pop ecx
cmp eax, 1
pop ecx
je 0x467a3a
mov eax, dword [ebp + 0x10]
cmp dword [eax - 8], 0
jne 0x467a1d
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0
je 0x467a3a
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.0049d8d8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.0049d8d8
jmp 0x4678eb
push dword [ebp + 0x14]
push 0
push esi
push edi
call fcn.00467b99
add esp, 0x10
test eax, eax
jne 0x467a52
push 1
pop ebx
jmp 0x467a1d
cmp eax, 1
jne 0x467a5b
push 0xa
jmp 0x467a4f
cmp eax, ebx
jne 0x467a63
push 0x17
jmp 0x467a4f
push 0x15
jmp 0x467a4f
cmp eax, 3
jne 0x467b56
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
push ecx
mov ecx, esp
mov dword [ebp + 0x10], esp
push ebx
call fcn.0049d64d
call fcn.00447d77
pop ecx
mov dword [ebp + 8], eax
pop ecx
lea eax, [ebp - 0x10]
push eax
push ecx
mov ecx, esp
mov dword [ebp + 0x10], esp
push esi
call fcn.0049d64d
call fcn.00447d77
cmp dword [ebp + 8], 1
pop ecx
pop ecx
je 0x467aaf
cmp eax, 1
jne 0x467b20
push ecx
mov ecx, dword [ebp - 0x10]
mov eax, esp
mov dword [ebp + 8], esp
mov dword [eax], ecx
lea ecx, [ebp - 0x14]
call fcn.00467c28
cmp eax, edi
jne 0x467b19
push ecx
mov ecx, dword [ebp - 0x10]
mov eax, esp
mov dword [ebp + 8], esp
mov dword [eax], ecx
lea ecx, [ebp - 0x14]
call fcn.00467c1a
cmp eax, edi
je 0x467b20
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], edi
push eax
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
push ebx
mov dword [ebp - 0x18], edi
call fcn.0049d64d
call fcn.00447cee
pop ecx
lea eax, [ebp - 0x18]
pop ecx
push eax
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
push esi
call fcn.0049d64d
call fcn.00447cee
mov eax, dword [ebp + 0xc]
pop ecx
cmp eax, dword [ebp - 0x18]
pop ecx
jne 0x467b20
push 6
jmp 0x467717
push dword [ebp + 0x14]
push edi
push esi
push ebx
call fcn.00467b99
add esp, 0x10
cmp eax, edi
jne 0x467b39
push 5
jmp 0x467717
cmp eax, 1
jne 0x467b45
push 0xc
jmp 0x467717
xor ecx, ecx
cmp eax, 2
setne cl
dec ecx
and ecx, 2
add ecx, 0x18
jmp 0x467b88
push dword [ebp + 0x14]
push edi
push esi
push dword [ebp + 8]
call fcn.00467b99
add esp, 0x10
cmp eax, edi
je 0x46783d
cmp eax, 1
jne 0x467b7a
push 9
jmp 0x467717
xor ecx, ecx
cmp eax, ebx
setne cl
dec ecx
and ecx, 5
add ecx, 0xd
mov eax, ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret