Function at 0x10010830
Capabilities:
Create directory
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 8], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
cmp dword [ebp + 0xc], 0
jne 0x10010885
jmp 0x10010be3
mov eax, dword [ebp + 0xc]
movsx ecx, byte [eax + 1]
cmp ecx, 0x3a
jne 0x100108a6
mov edx, dword [ebp + 0xc]
movsx eax, byte [edx + 2]
cmp eax, 0x5c
jne 0x100108a6
mov dword [ebp - 0x28], 0
jmp 0x100108ad
mov dword [ebp - 0x28], 1
cmp dword [ebp - 0x28], 0
je 0x100108eb
cmp dword [ebp + 0xc], 0
je 0x100108e1
cmp dword [ebp + 0x10], 0
je 0x100108e1
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.10019f90
add esp, 4
cmp eax, 0x1e
jae 0x100108e1
mov edx, dword [ebp + 0x10]
push edx
call fcn.10019f90
add esp, 4
cmp eax, 0x64
jb 0x100108eb
jmp 0x10010be3
push 0x208
call fcn.10019329
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1001090b
jmp 0x10010be3
push 0x208
push 0
mov eax, dword [ebp - 8]
push eax
call fcn.10019150
add esp, 0xc
push 0x104
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.1000fcc0
add esp, 0x14
test eax, eax
jne 0x10010949
jmp 0x10010be3
mov edx, dword [ebp - 8]
push edx
call fcn.10009760
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x10010968
jmp 0x10010be3
push 0
mov eax, dword [ebp - 0x10]
push eax
call fcn.10009c00
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x1000
jae 0x1001098c
jmp 0x10010be3
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.10019329
add esp, 4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x100109ab
jmp 0x10010be3
mov edx, dword [ebp - 0xc]
push edx
push 0
mov eax, dword [ebp - 0x1c]
push eax
call fcn.10019150
add esp, 0xc
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.10009c90
add esp, 0x10
test eax, eax
jne 0x100109e3
jmp 0x10010be3
cmp dword [ebp - 0x14], 0x1000
jb 0x100109f4
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp - 0x14]
je 0x100109fe
jmp 0x10010be3
push 0
mov eax, dword [ebp + 8]
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x10010a28
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x10010a28
jmp 0x10010be3
push 0x208
call fcn.10019329
add esp, 4
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x10010a48
jmp 0x10010be3
push 0x208
push 0
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.10019150
add esp, 0xc
push 0x104
mov edx, dword [ebp - 0x24]
push edx
push 0xffffffffffffffff
mov eax, dword [ebp + 0x10]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0x208
push 0
mov ecx, dword [ebp - 8]
push ecx
call fcn.10019150
add esp, 0xc
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp + 8]
add eax, 8
push eax
push str._ws_ws
push 0x104
mov ecx, dword [ebp - 8]
push ecx
call fcn.10018bc4
add esp, 0x14
push 0
push 0x4000000
push 2
push 0
push 7
push 0xc0000000
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x10010ad7
jmp 0x10010be3
push 0
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10010afd
jmp 0x10010be3
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 0x14]
je 0x10010b0f
jmp 0x10010be3
push 0x2298
call fcn.10019329
add esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x10010b2f
jmp 0x10010be3
push 0x2298
push 0
mov edx, dword [ebp - 0x20]
push edx
call fcn.10019150
add esp, 0xc
mov eax, dword [ebp - 0x20]
push eax
call fcn.10003be0
add esp, 4
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 4]
mov dword [ecx + 8], edx
push 0x200
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x20]
add ecx, 0x10
push ecx
call fcn.10019480
add esp, 0xc
push 0x2000
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x20]
add eax, 0x210
push eax
call fcn.10019480
add esp, 0xc
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 0x2210], 0
mov edx, dword [ebp + 0xc]
push edx
call fcn.10019f90
add esp, 4
push eax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x20]
add ecx, 0x2214
push ecx
call fcn.10019480
add esp, 0xc
mov edx, dword [ebp + 0x10]
push edx
call fcn.10019f90
add esp, 4
push eax
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x20]
add ecx, 0x2232
push ecx
call fcn.10019480
add esp, 0xc
mov dword [ebp - 0x18], 1
cmp dword [ebp - 0x18], 0
jne 0x10010c18
cmp dword [ebp - 4], 0
je 0x10010bff
cmp dword [ebp - 4], 0xffffffff
je 0x10010bff
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x20], 0
je 0x10010c18
mov eax, dword [ebp - 0x20]
push eax
call fcn.100193ec
add esp, 4
mov dword [ebp - 0x20], 0
cmp dword [ebp - 8], 0
je 0x10010c31
mov ecx, dword [ebp - 8]
push ecx
call fcn.100193ec
add esp, 4
mov dword [ebp - 8], 0
cmp dword [ebp - 0x24], 0
je 0x10010c4a
mov edx, dword [ebp - 0x24]
push edx
call fcn.100193ec
add esp, 4
mov dword [ebp - 0x24], 0
cmp dword [ebp - 0x1c], 0
je 0x10010c63
mov eax, dword [ebp - 0x1c]
push eax
call fcn.100193ec
add esp, 4
mov dword [ebp - 0x1c], 0
cmp dword [ebp - 0x10], 0
je 0x10010c7b
cmp dword [ebp - 0x10], 0xffffffff
je 0x10010c7b
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.1000a2a0
add esp, 4
mov eax, dword [ebp - 0x20]
mov esp, ebp
pop ebp
ret