Function at 0x100112c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10015a4c
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x5c
push ebx
push esi
push edi
mov eax, dword [0x100210f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x68]
cmp dword [eax + 0x21c], 0
je 0x10011311
mov ecx, dword [ebp - 0x68]
call fcn.10010eb0
mov dword [ebp - 0x30], 0
mov ecx, dword [ebp - 0x68]
cmp dword [ecx + 0x218], 0
je 0x10011334
mov edx, dword [ebp - 0x68]
cmp dword [edx + 0x224], 0
jne 0x100113d2
mov ecx, dword [ebp - 0x68]
call fcn.10011580
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
mov eax, dword [ebp - 0x68]
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x1001156b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x100113c2
lea ecx, [ebp - 0x54]
push ecx
push 0
mov edx, dword [ebp - 0x68]
add edx, 8
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
cmp dword [ebp - 0x34], 0
jne 0x100113c2
cmp dword [ebp - 0x38], 0
jne 0x100113c2
mov eax, 0xfeff
mov word [ebp - 0x58], ax
push 0
lea ecx, [ebp - 0x30]
push ecx
push 2
lea edx, [ebp - 0x58]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x68]
mov edx, dword [ecx + 4]
add edx, 2
mov eax, dword [ebp - 0x68]
mov dword [eax + 4], edx
push 2
push 0
push 0
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea edx, [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.MSVCR90.dll_wcslen]
add esp, 4
mov esi, eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCR90.dll_wcslen]
add esp, 4
lea edx, [eax + esi + 0x2a]
mov dword [ebp - 0x18], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
add eax, 1
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100147fc
add esp, 4
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x1c], ecx
jmp 0x10011447
mov dword [ebp - 4], 0
cmp dword [ebp - 0x1c], 0
jne 0x10011469
mov dword [ebp - 0x60], 8
push 0x1001eeb4
lea edx, [ebp - 0x60]
push edx
call sub.MSVCR90.dll__CxxThrowException
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor edx, edx
mov ecx, 0xf4240
div ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov ecx, 0xf4240
div ecx
push edx
mov edx, dword [ebp + 8]
push edx
movzx eax, word [ebp - 0x1e]
push eax
movzx ecx, word [ebp - 0x20]
push ecx
movzx edx, word [ebp - 0x22]
push edx
movzx eax, word [ebp - 0x24]
push eax
movzx ecx, word [ebp - 0x26]
push ecx
movzx edx, word [ebp - 0x2a]
push edx
push str._02d__02d__02d:_02d:_02d__03d____s____6d__6d____s_r_n
mov eax, dword [ebp - 0x18]
add eax, 1
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.10002110
add esp, 0x34
mov edx, dword [ebp - 0x68]
cmp dword [edx + 0x218], 0
je 0x10011503
mov eax, dword [ebp - 0x68]
cmp dword [eax + 0x224], 0
je 0x10011503
mov ecx, dword [ebp - 0x18]
shl ecx, 1
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax + 0x218]
push ecx
mov edx, dword [ebp - 0x68]
mov eax, dword [edx + 0x224]
call eax
add esp, 0xc
jmp 0x1001151d
push 0
lea ecx, [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x18]
shl edx, 1
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x64], edx
mov eax, dword [ebp - 0x64]
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov ecx, dword [ebp - 0x68]
mov edx, dword [ecx + 4]
add edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x68]
mov dword [eax + 4], edx
jmp 0x1001154d
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], 0xffffffff
je 0x1001156b
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8