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

Disassembly:
mov eax, 0x4581e8
call fcn.004324bc
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 0x4251e1
push 4
pop eax
jmp 0x42564e
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.00447ffc
push ebx
call fcn.0040b60c
pop ecx
pop ecx
call fcn.0040b31f
cmp eax, edi
pop ecx
jne 0x42523f
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push esi
call fcn.00447ffc
lea eax, [ebp - 0x1c]
push eax
call fcn.0040b60c
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.00448287
test bl, bl
je 0x42523f
push 0xf
jmp 0x4251db
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 0x42529c
push ecx
mov ecx, esp
mov dword [ebp + 0x10], esp
push esi
call fcn.00447ffc
call fcn.0040b3e4
cmp eax, edi
pop ecx
jne 0x4251d9
push dword [ebp + 0x14]
push edi
push esi
push dword [ebp + 8]
call fcn.0042565d
add esp, 0x10
cmp eax, edi
jne 0x42528c
push 3
jmp 0x4251db
dec eax
neg eax
sbb eax, eax
and eax, 8
add eax, 0xb
jmp 0x42564e
cmp eax, 5
jne 0x425318
push ecx
mov ecx, esp
mov dword [ebp + 0x10], esp
push esi
call fcn.00447ffc
call fcn.0040b3e4
cmp eax, edi
pop ecx
je 0x4252ed
push ecx
mov ecx, esp
mov dword [ebp + 0x14], esp
push esi
call fcn.00447ffc
push ecx
mov dword [ebp - 4], edi
mov ecx, esp
mov dword [ebp + 0x10], esp
push dword [ebp + 8]
call fcn.00447ffc
or dword [ebp - 4], 0xffffffff
call fcn.0040c691
neg eax
sbb eax, eax
pop ecx
and al, 0xfc
pop ecx
add eax, 0xd
jmp 0x42564e
push dword [ebp + 0x14]
push edi
push esi
push dword [ebp + 8]
call fcn.0042565d
add esp, 0x10
cmp eax, edi
jne 0x425308
xor eax, eax
jmp 0x42564e
dec eax
neg eax
sbb eax, eax
and eax, 4
add eax, 9
jmp 0x42564e
cmp eax, 4
jne 0x425353
push ecx
mov ecx, esp
mov dword [ebp + 0x14], esp
push esi
call fcn.00447ffc
push ecx
mov dword [ebp - 4], ebx
mov ecx, esp
mov dword [ebp + 0x10], esp
push dword [ebp + 8]
call fcn.00447ffc
or dword [ebp - 4], 0xffffffff
call fcn.0040c2c4
neg eax
sbb eax, eax
pop ecx
and al, 0xec
pop ecx
add eax, 0x1b
jmp 0x42564e
push 2
pop ebx
cmp eax, ebx
jne 0x42552b
mov edi, dword [ebp + 8]
push ecx
mov ecx, esp
mov dword [ebp + 0x10], esp
push edi
call fcn.00447ffc
call fcn.00424ead
fstp qword [ebp - 0x20]
mov ecx, esp
mov dword [ebp + 8], esp
push esi
call fcn.00447ffc
call fcn.00424ead
fld qword [ebp - 0x20]
fcomp qword [0x45c8a8]
pop ecx
fnstsw ax
sahf
jbe 0x425447
fcom qword [0x45c8a8]
fnstsw ax
sahf
jbe 0x4253b6
fld qword [ebp - 0x20]
fcomp st(1)
fnstsw ax
sahf
jae 0x4253b6
fstp st(0)
mov eax, ebx
jmp 0x42564e
fcom qword [0x45c8a8]
fnstsw ax
sahf
jbe 0x425447
fld qword [ebp - 0x20]
fcomp st(1)
fnstsw ax
sahf
fstp st(0)
jne 0x425449
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.00447ffc
call fcn.0040beeb
pop ecx
lea eax, [ebp + 0x10]
pop ecx
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push esi
call fcn.00447ffc
call fcn.0040beeb
mov eax, dword [ebp + 8]
pop ecx
cmp eax, dword [ebp + 0x10]
pop ecx
je 0x4253af
push dword [ebp + 0x14]
push 0
push esi
push edi
call fcn.0042565d
add esp, 0x10
test eax, eax
jne 0x425429
push 1
jmp 0x4251db
cmp eax, 1
jne 0x425435
push 0xa
jmp 0x4251db
xor ecx, ecx
cmp eax, ebx
setne cl
dec ecx
and ecx, ebx
add ecx, 0x15
jmp 0x42564c
fstp st(0)
mov eax, dword [0x470b50]
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.00447ffc
lea eax, [ebp + 0xc]
push eax
call fcn.00424f92
pop ecx
pop ecx
push eax
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 4
call fcn.00448374
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 3
call fcn.00448287
push ecx
mov ecx, esp
mov dword [ebp + 0xc], esp
push esi
call fcn.00447ffc
lea eax, [ebp + 0xc]
push eax
call fcn.00424f92
pop ecx
pop ecx
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 5
call fcn.00448374
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 3
call fcn.00448287
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0x10]
push eax
call fcn.004250b4
pop ecx
cmp eax, 1
pop ecx
je 0x4254fe
mov eax, dword [ebp + 0x10]
cmp dword [eax - 8], 0
jne 0x4254e1
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0
je 0x4254fe
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.00448287
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.00448287
jmp 0x4253af
push dword [ebp + 0x14]
push 0
push esi
push edi
call fcn.0042565d
add esp, 0x10
test eax, eax
jne 0x425516
push 1
pop ebx
jmp 0x4254e1
cmp eax, 1
jne 0x42551f
push 0xa
jmp 0x425513
cmp eax, ebx
jne 0x425527
push 0x17
jmp 0x425513
push 0x15
jmp 0x425513
cmp eax, 3
jne 0x42561a
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.00447ffc
call fcn.0040bf74
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.00447ffc
call fcn.0040bf74
cmp dword [ebp + 8], 1
pop ecx
pop ecx
je 0x425573
cmp eax, 1
jne 0x4255e4
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.004256ec
cmp eax, edi
jne 0x4255dd
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.004256de
cmp eax, edi
je 0x4255e4
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.00447ffc
call fcn.0040beeb
pop ecx
lea eax, [ebp - 0x18]
pop ecx
push eax
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
push esi
call fcn.00447ffc
call fcn.0040beeb
mov eax, dword [ebp + 0xc]
pop ecx
cmp eax, dword [ebp - 0x18]
pop ecx
jne 0x4255e4
push 6
jmp 0x4251db
push dword [ebp + 0x14]
push edi
push esi
push ebx
call fcn.0042565d
add esp, 0x10
cmp eax, edi
jne 0x4255fd
push 5
jmp 0x4251db
cmp eax, 1
jne 0x425609
push 0xc
jmp 0x4251db
xor ecx, ecx
cmp eax, 2
setne cl
dec ecx
and ecx, 2
add ecx, 0x18
jmp 0x42564c
push dword [ebp + 0x14]
push edi
push esi
push dword [ebp + 8]
call fcn.0042565d
add esp, 0x10
cmp eax, edi
je 0x425301
cmp eax, 1
jne 0x42563e
push 9
jmp 0x4251db
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