Function at 0x47b650
Capabilities:
Create directory
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x566e30
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x5b3680]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00402a00
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x47b694
push 0x80004005
call fcn.004027b0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 1
mov edx, str.mouselog
push 0
push 1
lea ecx, [ebp - 0x20]
call fcn.004820b0
mov edi, dword [ebp - 0x20]
add esp, 8
or ebx, 0xffffffff
cmp dword [edi - 0xc], 0
jle 0x47b888
lea ecx, [ebp - 0x10]
call fcn.00482350
mov byte [ebp - 4], 2
mov eax, dword [0x5ba20c]
test eax, eax
je 0x47b6fc
cmp dword [eax + 0x180], 0
je 0x47b6fc
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x10]
mov eax, dword [eax + 0x54]
push dword [eax - 0xc]
push eax
call fcn.00443ec0
mov ebx, dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push 0
push dword [ebp - 0x10]
push 0
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 2
push dword [ebp - 0x10]
call esi
push 0x5845c8
lea eax, [ebp - 0x10]
push 0x58b238
push eax
call fcn.00443ea0
add esp, 0xc
push 0
push dword [ebp - 0x10]
push 0
call ebx
push 2
push dword [ebp - 0x10]
call esi
call fcn.00402a00
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x47b75a
push 0x80004005
call fcn.004027b0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 4
lea eax, [ebp - 0x24]
push edi
push dword [ebp - 0x10]
push 0x58ae70
push eax
call fcn.00415d20
mov esi, dword [ebp - 0x24]
push 0x58c254
push esi
call fcn.0052e5ea
add esp, 0x18
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
push dword [eax + 0xdc]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov ebx, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call ebx
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 8]
push dword [eax + 0xdc]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebx
mov ebx, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xdc]
push ecx
push dword [eax + 0xd8]
mov dword [ebp - 0x14], ecx
push ebx
call fcn.00531580
mov eax, dword [ebp + 8]
push dword [eax + 0xdc]
lea eax, [ebp - 0x14]
push ebx
push eax
push dword [ebp - 0x18]
call fcn.00524120
add esp, 0x1c
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
push eax
call ebx
push dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
push 1
push 4
push eax
call fcn.0052b6e4
push dword [ebp - 0x1c]
push 1
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.0052b6e4
add esp, 0x20
push dword [ebp - 0x18]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebx
push dword [ebp - 0x1c]
call fcn.0052c324
add esp, 4
mov byte [ebp - 4], 2
add esi, 0xfffffff0
lea eax, [esi + 0xc]
or ebx, 0xffffffff
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47b868
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov ecx, ebx
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47b888
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lea eax, [edi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x47b8a6
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4