Function at 0x10002fc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xc98
mov eax, dword [0x101b600c]
xor eax, esp
mov dword [esp + 0xc94], eax
mov ecx, dword [ebp + 0x1c]
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x18], esi
push edi
test ecx, ecx
je 0x100033d1
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10002ff1
sub ecx, edx
je 0x100033d1
mov ecx, esi
call fcn.10002dd0
cmp byte [ebp + 0x18], 0
jne 0x10003015
test eax, eax
je 0x100033d1
xor eax, eax
xorps xmm0, xmm0
mov word [esp + 0x20], ax
mov dword [esp + 0x2a], eax
mov word [esp + 0x2e], ax
lea eax, [esp + 0x20]
push eax
movq qword [esp + 0x26], xmm0
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov esi, dword [ebp + 0x14]
xorps xmm0, xmm0
movups xmmword [esp + 0x31], xmm0
mov edi, esi
mov dword [esp + 0x49], 0
movq qword [esp + 0x41], xmm0
xor ecx, ecx
movaps xmm0, xmmword [0x101b2ba0]
mov byte [esp + 0x30], 0
mov word [esp + 0x4d], 0
lea edx, [edi + 1]
mov byte [esp + 0x4f], 0
movaps xmmword [esp + 0x30], xmm0
movq qword [esp + 0x40], xmm0
mov dword [esp + 0x48], 0x20202020
mov word [esp + 0x4c], 0x2020
nop dword [eax + eax]
mov al, byte [edi]
inc edi
test al, al
jne 0x10003090
sub edi, edx
mov dword [esp + 0x18], 0x1e
mov dword [esp + 0x10], edi
lea edx, [esp + 0x4d]
add esi, edi
lea eax, [edi + 1]
mov dword [esp + 0xc], eax
mov edi, eax
cmp edi, 0x1e
mov eax, edi
cmova eax, dword [esp + 0x18]
cmp ecx, eax
jae 0x100030cb
mov al, byte [esi]
inc ecx
mov byte [edx], al
dec esi
dec edx
jmp 0x100030b4
mov edi, dword [esp + 0x10]
cmp ecx, 0x1d
jae 0x100030dd
lea eax, [esp + 0x4d]
sub eax, ecx
mov byte [eax], 0x7c
mov edx, dword [ebp + 0x10]
inc ecx
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x100030e4
sub edx, esi
lea esi, [esp + 0x4d]
sub esi, ecx
lea eax, [edx + 1]
sub edx, ecx
add edx, edi
mov dword [esp + 0xc], eax
mov edi, dword [ebp + 0x10]
inc edi
add edx, edi
mov edi, 0x1e
nop dword [eax]
cmp dword [esp + 0xc], edi
cmova eax, edi
cmp ecx, eax
jae 0x10003128
mov al, byte [edx]
inc ecx
mov byte [esi], al
dec edx
mov eax, dword [esp + 0xc]
dec esi
jmp 0x10003110
push 0x200
lea eax, [esp + 0x54]
push 0
push eax
call fcn.100106a0
mov edx, dword [ebp + 0x1c]
add esp, 0xc
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10003144
sub ecx, esi
cmp ecx, 0x200
jb 0x10003171
push str.The_format_string_is_too_long.
lea eax, [esp + 0x54]
push 0x200
push eax
call fcn.1001531a
add esp, 0xc
jmp 0x100032f0
lea eax, [ebp + 0x20]
push eax
push ecx
push edx
push 0xffffffffffffffff
mov edx, 0x200
lea ecx, [esp + 0x60]
call fcn.100035c0
add esp, 0x10
test eax, eax
jle 0x100031a4
lea ecx, [esp + 0x50]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10003195
sub ecx, edx
jne 0x100032f0
push 0x400
lea eax, [esp + 0x49c]
push 0
push eax
call fcn.100106a0
add esp, 0xc
lea eax, [esp + 0x898]
push 0x400
push 0
push eax
call fcn.100106a0
mov edx, dword [ebp + 0x1c]
add esp, 0xc
mov ecx, edx
lea esi, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100031e0
push 0x200
lea eax, [esp + 0x49c]
sub ecx, esi
push eax
push ecx
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea ecx, [esp + 0x498]
xor edx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10003210
sub ecx, esi
sar ecx, 1
lea eax, [ecx - 1]
test eax, eax
je 0x1000327e
mov eax, 0x25
lea ecx, [eax + 0x2e]
lea edi, [eax + 0x4e]
cmp ax, word [esp + edx*2 + 0x498]
jne 0x1000324d
cmp cx, word [esp + edx*2 + 0x49a]
jne 0x1000324d
mov word [esp + edx*2 + 0x49a], di
lea ecx, [esp + 0x498]
inc edx
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10003260
sub ecx, esi
sar ecx, 1
lea eax, [ecx - 1]
cmp edx, eax
mov eax, 0x25
lea ecx, [eax + 0x2e]
jb 0x10003231
lea eax, [ebp + 0x20]
mov edx, 0x200
push eax
push ecx
lea eax, [esp + 0x4a0]
push eax
push 0xffffffffffffffff
lea ecx, [esp + 0x8a8]
call fcn.10003580
push 0x200
lea eax, [esp + 0x64]
push 0
push eax
call fcn.100106a0
lea ecx, [esp + 0x8b4]
add esp, 0x1c
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100032c0
push 0
push 0
push 0x200
sub ecx, edx
lea eax, [esp + 0x5c]
push eax
sar ecx, 1
lea eax, [esp + 0x8a8]
push ecx
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0x246
lea eax, [esp + 0x254]
push 0
push eax
call fcn.100106a0
add esp, 0xc
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [esp + 0x3c]
push eax
push dword [ebp + 0xc]
movzx eax, word [esp + 0x40]
push eax
movzx eax, word [esp + 0x42]
push eax
movzx eax, word [esp + 0x44]
push eax
movzx eax, word [esp + 0x46]
push eax
movzx eax, word [esp + 0x46]
push eax
movzx eax, word [esp + 0x48]
push eax
push str.__4d__2d__2d__2d:_2d:_2d___4d___s______d:_d__s_r_n
push 0xffffffffffffffff
lea eax, [esp + 0x284]
push 0x246
push eax
call fcn.10003540
add esp, 0x3c
cmp byte [ebp + 0x18], 0
je 0x10003378
lea eax, [esp + 0x250]
push eax
call fcn.10003510
add esp, 4
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x14], 0
lea esi, [edi + 0x10c]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [edi + 0x108], 0xffffffff
je 0x100033ca
lea ecx, [esp + 0x250]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100033a4
push 0
lea eax, [esp + 0x18]
sub ecx, edx
push eax
push ecx
lea eax, [esp + 0x25c]
push eax
mov eax, dword [edi + 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0xc9c]
pop edi
pop esi
xor ecx, esp
call fcn.1000da67
mov esp, ebp
pop ebp
ret