Function at 0x51da60
Capabilities:
Create directory
Delete directory
Get common file path
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 0x128], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov edi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x51dcf7
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea eax, [ebp - 0xc]
mov edx, 0x104
call fcn.00405a04
lea eax, [ebp - 0xc]
call fcn.004058d0
push eax
push 0x104
call sub.kernel32.dll_GetTempPathA
mov edx, eax
lea eax, [ebp - 0xc]
call fcn.00405a04
mov eax, dword [ebp - 0xc]
call fcn.00405678
test eax, eax
jle 0x51dccc
mov eax, dword [ebp - 0xc]
call fcn.00405678
mov edx, dword [ebp - 0xc]
cmp byte [edx + eax - 1], 0x5c
je 0x51dafb
lea eax, [ebp - 0xc]
mov edx, 0x51dd10
call fcn.00405680
xor esi, esi
inc esi
lea edx, [ebp - 0x124]
mov eax, esi
call fcn.00403c70
lea edx, [ebp - 0x124]
lea eax, [ebp - 0x14]
call fcn.00405600
push dword [ebp - 0xc]
push 0x51dd1c
push dword [ebp - 0x14]
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00405738
mov eax, dword [ebp - 0x10]
call fcn.0051da38
test al, al
jne 0x51dafd
push 0
mov eax, dword [ebp - 0x10]
call fcn.00405878
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
je 0x51dccc
xor eax, eax
push ebp
push 0x51dcc5
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov edx, 0x51dd10
call fcn.00405680
lea eax, [ebp - 0x18]
mov ecx, 0x51dd2c
mov edx, dword [ebp - 0x10]
call fcn.004056c4
lea eax, [ebp - 0x1c]
mov ecx, 0x51dd40
mov edx, dword [ebp - 0x10]
call fcn.004056c4
mov edx, dword [ebp - 0x18]
mov eax, ebx
call fcn.0051d38c
test al, al
je 0x51dca9
xor eax, eax
push ebp
push 0x51dca2
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, edi
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
call fcn.0051d8c8
test al, al
je 0x51dc54
push 0
push 0
push 3
push 0
push 3
push 0x80000000
mov eax, dword [ebp - 0x1c]
call fcn.00405878
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
je 0x51dc54
xor eax, eax
push ebp
push 0x51dc4d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
xor ecx, ecx
mov edx, 0x10000
call fcn.00403ac0
push 0
lea eax, [ebp - 0x24]
push eax
push 0x10000
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_ReadFile_1
test eax, eax
je 0x51dc2d
cmp dword [ebp - 0x24], 0x10000
je 0x51dc31
xor eax, eax
jmp 0x51dc33
mov al, 1
mov byte [ebp - 5], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51dc54
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51dca9
mov eax, dword [ebp - 0x1c]
call fcn.00405878
mov edx, eax
lea eax, [ebp - 0x128]
call fcn.00405594
mov eax, dword [ebp - 0x128]
call fcn.0040d0dc
mov eax, dword [ebp - 0x18]
call fcn.00405878
mov edx, eax
lea eax, [ebp - 0x12c]
call fcn.00405594
mov eax, dword [ebp - 0x12c]
call fcn.0040d0dc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51dccc
mov eax, dword [ebp - 0x10]
call fcn.00405878
push eax
call sub.kernel32.dll_RemoveDirectoryA
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51dcfe
lea eax, [ebp - 0x12c]
mov edx, 2
call fcn.004053c0
lea eax, [ebp - 0x1c]
mov edx, 5
call fcn.004053c0
ret