Function at 0x4c6af6
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
lea ecx, [ebp - 4]
call fcn.004c6681
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor edi, edi
cmp eax, 0xffffffff
je 0x4c6b1c
mov esi, dword [ebp - 4]
jmp 0x4c6b76
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4c6b71
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4c6b71
lea eax, [ebp - 4]
push eax
call fcn.004c756f
mov esi, dword [ebp - 4]
pop ecx
cmp dword [esi - 0xc], edi
je 0x4c6b77
push esi
call fcn.004c6af6
pop ecx
test eax, eax
je 0x4c6b77
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4c6b74
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4c6b74
jmp 0x4c6b77
mov esi, dword [ebp - 4]
xor edi, edi
inc edi
lea ecx, [esi - 0x10]
call fcn.004c77e2
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4c91d8
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4c9264
push edi
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp dword [ebp - 4], ebx
jne 0x4c925c
cmp edi, 0x200000
ja 0x4c925c
lea eax, [edi + 2]
push eax
call fcn.004f3b58
pop ecx
push ebx
lea ecx, [ebp + 8]
mov dword [ebp - 8], eax
push ecx
push edi
push eax
push esi
mov dword [ebp + 8], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4c925c
mov eax, dword [ebp + 8]
cmp eax, edi
jne 0x4c925c
mov ecx, dword [ebp - 8]
mov byte [eax + ecx], bl
mov eax, dword [ebp + 8]
mov byte [eax + ecx + 1], bl
inc ebx
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4cbee2
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov eax, dword [edi]
cmp dword [eax - 0xc], esi
je 0x4cbf73
push esi
mov ecx, edi
call fcn.004cb1ed
push 0x25
pop ecx
cmp cx, ax
jne 0x4cbf73
push esi
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebx, eax
test ebx, ebx
je 0x4cbf73
cmp ebx, 0x8003
ja 0x4cbf73
call fcn.004c5a90
push eax
lea ecx, [ebp + 8]
call fcn.004c65c1
push ebx
lea ecx, [ebp + 8]
call fcn.004c7772
push ebx
push eax
push dword [edi]
call fcn.004cbf7a
mov ebx, eax
lea ecx, [ebp + 8]
add esp, 0xc
test ebx, ebx
jne 0x4cbf50
push esi
call fcn.004c78f4
jmp 0x4cbf64
push 0xffffffffffffffff
call fcn.004cd175
lea eax, [ebp + 8]
mov ecx, edi
push eax
call fcn.004c66f6
mov esi, ebx
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004c77e2
mov eax, esi
jmp 0x4cbf75
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret