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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x128], ecx
mov dword [ebp - 0x124], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov esi, edx
mov edi, eax
xor eax, eax
push ebp
push 0x499976
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
lea eax, [ebp - 8]
mov edx, 0x104
call fcn.00404d44
lea eax, [ebp - 8]
call fcn.00404c10
push eax
push 0x104
call sub.kernel32.dll_GetTempPathA
mov edx, eax
lea eax, [ebp - 8]
call fcn.00404d44
mov eax, dword [ebp - 8]
call fcn.004049b8
test eax, eax
jle 0x49994b
mov eax, dword [ebp - 8]
call fcn.004049b8
mov edx, dword [ebp - 8]
cmp byte [edx + eax - 1], 0x5c
je 0x499780
lea eax, [ebp - 8]
mov edx, 0x499990
call fcn.004049c0
xor ebx, ebx
inc ebx
lea edx, [ebp - 0x120]
mov eax, ebx
call fcn.004032c4
lea edx, [ebp - 0x120]
lea eax, [ebp - 0x10]
call fcn.0040495c
push dword [ebp - 8]
push 0x49999c
push dword [ebp - 0x10]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404a78
mov eax, dword [ebp - 0xc]
call fcn.004996c0
test al, al
jne 0x499782
push 0
mov eax, dword [ebp - 0xc]
call fcn.00404bb8
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
je 0x49994b
xor eax, eax
push ebp
push 0x499944
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
mov edx, 0x499990
call fcn.004049c0
lea eax, [ebp - 0x14]
mov ecx, 0x4999ac
mov edx, dword [ebp - 0xc]
call fcn.00404a04
lea eax, [ebp - 0x18]
mov ecx, 0x4999c0
mov edx, dword [ebp - 0xc]
call fcn.00404a04
mov eax, dword [ebp - 0x14]
call fcn.00499454
test al, al
je 0x499928
xor eax, eax
push ebp
push 0x499921
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, esi
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
call fcn.00499550
test al, al
je 0x4998d3
push 0
push 0
push 3
push 0
push 3
push 0x80000000
mov eax, dword [ebp - 0x18]
call fcn.00404bb8
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
je 0x4998d3
xor eax, eax
push ebp
push 0x4998cc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
xor ecx, ecx
mov edx, 0x10000
call fcn.00403244
push 0
lea eax, [ebp - 0x20]
push eax
push 0x10000
push edi
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x4998ac
cmp dword [ebp - 0x20], 0x10000
je 0x4998b0
xor eax, eax
jmp 0x4998b2
mov al, 1
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4998d3
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_CloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x499928
mov eax, dword [ebp - 0x18]
call fcn.00404bb8
mov edx, eax
lea eax, [ebp - 0x124]
call fcn.004048f0
mov eax, dword [ebp - 0x124]
call fcn.004096a0
mov eax, dword [ebp - 0x14]
call fcn.00404bb8
mov edx, eax
lea eax, [ebp - 0x128]
call fcn.004048f0
mov eax, dword [ebp - 0x128]
call fcn.004096a0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49994b
mov eax, dword [ebp - 0xc]
call fcn.00404bb8
push eax
call sub.kernel32.dll_RemoveDirectoryA
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49997d
lea eax, [ebp - 0x128]
mov edx, 2
call fcn.0040471c
lea eax, [ebp - 0x18]
mov edx, 5
call fcn.0040471c
ret