Function at 0x6cde3240
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4340
call fcn.6ce16010
mov eax, dword [0x6ce5c008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, ecx
mov dword [ebp - 0x4210], eax
push edi
cmp dword [ebx + 4], 0xffffffff
je 0x6cde3271
mov ecx, dword [ebx]
call fcn.6cde2ae0
mov ecx, dword [ebx]
mov edi, dword [ebp + 8]
mov dword [ebx + 4], 0xffffffff
cmp edi, dword [ecx + 4]
jl 0x6cde3299
pop edi
mov eax, 0x10000
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.6ce11901
mov esp, ebp
pop ebp
ret 0x10
cmp edi, dword [ecx + 0x10]
jge 0x6cde32a3
call fcn.6cde2560
mov eax, dword [ebx]
push esi
cmp dword [eax + 0x10], edi
jge 0x6cde3300
nop dword [eax + eax]
mov esi, dword [ebx]
test esi, esi
je 0x6cde32f9
cmp dword [esi + 0x18], 0
je 0x6cde32f9
mov edx, dword [esi + 0x10]
inc edx
cmp edx, dword [esi + 4]
je 0x6cde32f9
mov ecx, dword [esi + 0x50]
sub esp, 0x10
mov eax, dword [esi + 0x48]
add ecx, dword [esi + 0x4c]
add eax, 0x2e
add eax, ecx
mov dword [esi + 0x10], edx
add dword [esi + 0x14], eax
lea edx, [esi + 0x28]
push 0
lea eax, [esi + 0x78]
mov ecx, esi
push 0
push eax
call fcn.6cde2080
add esp, 0x1c
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x18], eax
mov eax, dword [ebx]
cmp dword [eax + 0x10], edi
jl 0x6cde32b0
lea eax, [ebp - 0x433c]
mov ecx, ebx
push eax
push edi
call fcn.6cde2c70
test byte [ebp - 0x4234], 0x10
je 0x6cde3373
push 0x206
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x103
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x4338]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea ecx, [ebx + 0x138]
lea edx, [ebp - 0x20c]
call fcn.6cde3160
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.6ce11901
mov esp, ebp
pop ebp
ret 0x10
mov edi, dword [ebp - 0x4210]
mov esi, edi
mov ecx, edi
movzx eax, word [edi]
test ax, ax
je 0x6cde3467
nop dword [eax]
cmp ax, 0x2f
je 0x6cde339c
cmp ax, 0x5c
jne 0x6cde339f
lea esi, [ecx + 2]
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x6cde3390
cmp esi, edi
je 0x6cde3467
push edi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
sub esi, edi
add esp, 0xc
sar esi, 1
lea esi, [esi*2 - 2]
cmp esi, 0x208
jae 0x6cde3568
xor eax, eax
mov word [ebp + esi - 0x20c], ax
mov ax, word [ebp - 0x20c]
cmp ax, 0x2f
je 0x6cde340e
cmp ax, 0x5c
je 0x6cde340e
cmp word [ebp - 0x20a], 0x3a
mov byte [ebp - 0x433d], 0
jne 0x6cde3415
mov byte [ebp - 0x433d], 1
mov esi, dword [sym.imp.VCRUNTIME140.dll_wcsstr]
lea eax, [ebp - 0x20c]
push 0x6ce43b90
push eax
call esi
mov edi, eax
lea eax, [ebp - 0x20c]
push 0x6ce43b98
push eax
call esi
add esp, 0x10
test eax, eax
setne cl
test edi, edi
setne al
or cl, al
or cl, byte [ebp - 0x433d]
jne 0x6cde3461
lea ecx, [ebx + 0x138]
lea edx, [ebp - 0x20c]
call fcn.6cde3160
mov edi, dword [ebp - 0x4210]
push 0
push dword [ebp - 0x4234]
push 2
push 0
push 0
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x6cde34a0
pop esi
pop edi
mov eax, 0x200
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.6ce11901
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebx]
call fcn.6cde2830
mov ecx, dword [ebx]
lea edx, [ebp - 0x420c]
push 0x4000
mov byte [ebp - 0x433d], 0
call fcn.6cde2950
add esp, 4
test eax, eax
js 0x6cde3500
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
je 0x6cde3507
push 0
lea ecx, [ebp - 0x4210]
push ecx
push eax
lea eax, [ebp - 0x420c]
push eax
push esi
call edi
test eax, eax
je 0x6cde3500
mov ecx, dword [ebx]
lea edx, [ebp - 0x420c]
push 0x4000
call fcn.6cde2950
add esp, 4
test eax, eax
jns 0x6cde34cd
mov byte [ebp - 0x433d], 1
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x6cde3538
cmp byte [ebp - 0x433d], 0
jne 0x6cde3538
lea eax, [ebp - 0x4220]
push eax
lea eax, [ebp - 0x4230]
push eax
lea eax, [ebp - 0x4228]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebx]
call fcn.6cde2ae0
cmp byte [ebp - 0x433d], 0
mov ecx, 0x400
pop esi
cmovne eax, ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.6ce11901
mov esp, ebp
pop ebp
ret 0x10
call fcn.6ce11dd7
int3