Function at 0x1001b910
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10036680
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push esi
push edi
mov eax, dword [0x1004f100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x18], 0xffffffff
cmp dword [ebx + 0x21c], edi
je 0x1001b958
mov esi, ebx
call fcn.1001b5f0
mov dword [ebp - 0x14], edi
cmp dword [ebx + 0x218], edi
je 0x1001b96f
cmp dword [ebx + 0x224], edi
jne 0x1001b9f1
mov ecx, ebx
call fcn.1001bb50
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
lea edi, [ebx + 8]
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x18], esi
cmp esi, 0xffffffff
je 0x1001bb33
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1001b9e4
lea eax, [ebp - 0x54]
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
cmp dword [ebp - 0x34], 0
jne 0x1001b9e4
cmp dword [ebp - 0x38], 0
jne 0x1001b9e4
push 0
lea ecx, [ebp - 0x14]
push ecx
push 2
lea edx, [ebp - 0x1c]
push edx
push esi
mov dword [ebp - 0x1c], 0xfeff
call dword [sym.imp.KERNEL32.dll_WriteFile]
add dword [ebx + 4], 2
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [ebp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1001ba01
sub eax, edx
sar eax, 1
mov edx, eax
mov eax, dword [ebp + 0xc]
lea esi, [eax + 2]
jmp 0x1001ba20
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1001ba20
sub eax, esi
sar eax, 1
lea esi, [eax + edx + 0x2a]
mov dword [ebp - 0x1c], esi
inc esi
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
mov byte [ebp - 4], 1
neg ecx
or ecx, eax
push ecx
call fcn.1002651c
mov edi, eax
add esp, 4
mov dword [ebp - 4], 0
test edi, edi
jne 0x1001ba85
push 0x10049564
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 8
call fcn.10028c35
mov dword [ebp - 4], 0
mov eax, 0x1001ba63
ret
mov ecx, dword [ebp + 0xc]
push ecx
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
movzx eax, word [ebp - 0x22]
movzx ecx, word [ebp - 0x24]
push edx
mov edx, dword [ebp + 8]
push edx
movzx edx, word [ebp - 0x26]
push eax
movzx eax, word [ebp - 0x28]
push ecx
movzx ecx, word [ebp - 0x2a]
push edx
movzx edx, word [ebp - 0x2e]
push eax
push ecx
push edx
push str._02d__02d__02d:_02d:_02d__03d____s____6d__6d____s_r_n
push esi
push edi
call fcn.10001f00
mov eax, dword [ebx + 0x218]
add esp, 0x34
test eax, eax
je 0x1001bafd
mov ecx, dword [ebx + 0x224]
test ecx, ecx
je 0x1001bafd
mov edx, dword [ebp - 0x1c]
add edx, edx
push edx
push edi
push eax
call ecx
add esp, 0xc
jmp 0x1001bb15
mov ecx, dword [ebp - 0x1c]
push 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
lea edx, [ecx + ecx]
push edx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call fcn.1002716e
mov ecx, dword [ebp - 0x14]
add esp, 4
add dword [ebx + 4], ecx
mov eax, dword [ebp - 0x18]
cmp eax, 0xffffffff
je 0x1001bb33
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
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