Function at 0x100017fd
Capabilities:
Check if file exists
Copy file
Delete file
Get file attributes
Get file size
Set environment variable
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x524
mov eax, dword [0x1000e078]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, 0x103
xor ebx, ebx
push esi
mov dword [ebp - 0x51c], eax
lea eax, [ebp - 0x30f]
push ebx
push eax
mov byte [ebp - 0x310], bl
call fcn.10006510
push dword [0x1000fd70]
lea edi, [ebp - 0x310]
push dword [0x1000fd28]
push dword [0x1000fd0c]
push 2
pop eax
call fcn.1000178e
push esi
lea eax, [ebp - 0x517]
push ebx
push eax
mov byte [ebp - 0x518], bl
call fcn.10006510
push ebx
push dword [0x1000fd24]
lea edi, [ebp - 0x518]
push dword [0x1000fd44]
push 3
pop eax
call fcn.1000178e
push esi
lea eax, [ebp - 0x413]
push ebx
push eax
mov byte [ebp - 0x414], bl
call fcn.10006510
push ebx
push dword [0x1000fd30]
xor eax, eax
push dword [0x1000fcd4]
lea edi, [ebp - 0x414]
call fcn.1000178e
add esp, 0x48
push esi
lea eax, [ebp - 0x20b]
push ebx
push eax
mov byte [ebp - 0x20c], bl
call fcn.10006510
push ebx
push dword [0x1000fcd8]
lea edi, [ebp - 0x20c]
push dword [0x1000fd08]
push 3
pop eax
call fcn.1000178e
push esi
lea eax, [ebp - 0x107]
push ebx
push eax
mov byte [ebp - 0x108], bl
call fcn.10006510
push ebx
push dword [0x1000fd40]
lea edi, [ebp - 0x108]
push dword [0x1000fcf4]
push 5
pop eax
call fcn.1000178e
mov esi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
add esp, 0x30
push 0x1000c4f4
push str.mode
call esi
lea eax, [ebp - 0x20c]
push eax
push str.Apache_Fpath
call esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea eax, [ebp - 0x20c]
push eax
call esi
cmp eax, 0xffffffff
je 0x10001a7e
test al, 0x10
jne 0x10001a7e
push ebx
push ebx
push 3
push ebx
push ebx
push 0x80000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x520], eax
cmp eax, 0xffffffff
je 0x10001ac0
mov edi, dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
push eax
call edi
push dword [ebp - 0x520]
mov dword [ebp - 0x524], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x524], 0x1e
jge 0x10001a02
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x518]
push eax
call edi
lea eax, [ebp - 0x414]
push eax
call edi
lea eax, [ebp - 0x310]
push eax
call esi
cmp eax, 0xffffffff
je 0x100019f1
test al, 0x10
jne 0x100019f1
mov ebx, dword [ebp - 0x51c]
lea eax, [ebp - 0x310]
push eax
call fcn.10001508
pop ecx
test al, al
je 0x100019e8
push ebx
call edi
lea eax, [ebp - 0x310]
push eax
call edi
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10002a98
leave
ret
call fcn.10001048
test eax, eax
je 0x10001ac0
lea eax, [ebp - 0x108]
push eax
call esi
cmp eax, 0xffffffff
je 0x10001a21
test al, 0x10
je 0x10001a46
push ebx
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x10001ac0
lea eax, [ebp - 0x108]
jmp 0x10001ab7
push ebx
push ebx
push 3
push ebx
push ebx
push 0x80000000
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
push eax
mov dword [ebp - 0x520], eax
call edi
cmp dword [ebp - 0x524], eax
je 0x10001ac0
push dword [ebp - 0x520]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10001a21
lea eax, [ebp - 0x108]
push eax
call esi
cmp eax, 0xffffffff
je 0x100019f1
test al, 0x10
jne 0x100019f1
push ebx
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x10001ac0
lea eax, [ebp - 0x20c]
push 6
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x310]
push eax
call esi
cmp eax, 0xffffffff
je 0x10001b0f
test al, 0x10
jne 0x10001b0f
mov edi, dword [ebp - 0x51c]
lea eax, [ebp - 0x310]
push eax
mov ebx, edi
call fcn.10001508
pop ecx
test al, al
je 0x10001b0b
push edi
call esi
cmp eax, 0xffffffff
je 0x10001b0b
test al, 0x10
jne 0x10001b0b
push edi
lea ecx, [ebp - 0x414]
call fcn.1000167d
pop ecx
mov al, 1
jmp 0x100019f3
xor ebx, ebx
jmp 0x10001b15
mov edi, dword [ebp - 0x51c]
lea eax, [ebp - 0x518]
push eax
call esi
cmp eax, 0xffffffff
je 0x10001b92
test al, 0x10
jne 0x10001b92
push edi
call fcn.100015a3
pop ecx
test al, al
je 0x100019f3
lea eax, [ebp - 0x518]
push edi
push eax
call fcn.100012bc
pop ecx
pop ecx
push edi
call esi
cmp eax, 0xffffffff
je 0x100019f3
test al, 0x10
jne 0x100019f3
push 6
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, edi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10001b67
sub eax, esi
push eax
lea eax, [ebp - 0x310]
push edi
push eax
call fcn.1000141d
lea ecx, [ebp - 0x414]
push edi
call fcn.1000167d
add esp, 0x10
jmp 0x10001b04
lea eax, [ebp - 0x414]
push eax
call esi
cmp eax, 0xffffffff
je 0x100019f1
test al, 0x10
jne 0x100019f1
push edi
call fcn.100015a3
pop ecx
test al, al
je 0x100019f3
lea eax, [ebp - 0x414]
push edi
push eax
call fcn.100012bc
pop ecx
pop ecx
push edi
call esi
cmp eax, 0xffffffff
je 0x100019f3
test al, 0x10
jne 0x100019f3
push 6
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, edi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10001bec
sub eax, esi
push eax
lea eax, [ebp - 0x310]
push edi
push eax
call fcn.1000141d
lea ecx, [ebp - 0x518]
jmp 0x10001b84