Function at 0x6c294b80
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x37c
mov ebx, dword [esp + 0x390]
mov edi, dword [esp + 0x394]
mov ebp, dword [esp + 0x398]
mov esi, dword [esp + 0x3a0]
lea eax, [esi - 1]
cmp eax, 2
jbe 0x6c294bc0
mov edi, 0x10000
mov eax, edi
add esp, 0x37c
pop ebx
pop esi
pop edi
pop ebp
ret
cmp esi, 3
je 0x6c294c68
cmp dword [ebx + 4], 0xffffffff
je 0x6c294bd9
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.6c294430
mov dword [ebx + 4], 0xffffffff
mov eax, dword [ebx]
cmp edi, dword [eax + 4]
jge 0x6c294bae
cmp edi, dword [eax + 0x10]
jge 0x6c294bfe
jmp 0x6c294f00
mov dword [esp], eax
call fcn.6c293684
mov eax, dword [ebx]
cmp edi, dword [eax + 0x10]
jg 0x6c294bf4
lea eax, [esp + 0x34]
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [esp], ebx
call fcn.6c294874
test byte [esp + 0x13c], 0x10
jne 0x6c294d08
mov byte [esp + 0x160], 0
cmp esi, 1
je 0x6c294e25
mov al, byte [ebp]
test al, al
je 0x6c294f96
mov edx, ebp
mov edi, ebp
jmp 0x6c294c5c
cmp al, 0x5c
je 0x6c294c60
lea ecx, [edx + 1]
mov al, byte [edx + 1]
test al, al
je 0x6c294d48
mov edx, ecx
cmp al, 0x2f
jne 0x6c294c48
lea edi, [edx + 1]
mov ecx, edi
jmp 0x6c294c4f
mov eax, dword [ebx + 4]
cmp eax, edi
je 0x6c294cbc
inc eax
je 0x6c294c7c
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.6c294430
mov dword [ebx + 4], 0xffffffff
mov eax, dword [ebx]
cmp edi, dword [eax + 4]
jge 0x6c294bae
cmp edi, dword [eax + 0x10]
jge 0x6c294ca2
jmp 0x6c294f1a
mov dword [esp], eax
call fcn.6c293684
mov eax, dword [ebx]
cmp edi, dword [eax + 0x10]
jg 0x6c294c98
mov edx, dword [ebx + 0x138]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.6c2944b0
mov dword [ebx + 4], edi
lea eax, [esp + 0x36f]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x39c]
mov dword [esp + 8], eax
mov dword [esp + 4], ebp
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.6c294078
mov esi, eax
test eax, eax
jle 0x6c294f80
cmp byte [esp + 0x36f], 0
jne 0x6c294d3e
test esi, esi
jle 0x6c294fc8
mov edi, 0x600
jmp 0x6c294bb3
dec esi
je 0x6c294d3e
mov al, byte [ebp]
cmp al, 0x2f
je 0x6c294f2c
cmp al, 0x5c
je 0x6c294f2c
test al, al
je 0x6c294d2c
cmp byte [ebp + 1], 0x3a
je 0x6c294f2c
mov dword [esp + 4], ebp
add ebx, 0x140
mov dword [esp], ebx
call fcn.6c2949e8
xor edi, edi
jmp 0x6c294bb3
mov dword [esp + 8], 0x104
mov dword [esp + 4], ebp
lea edx, [esp + 0x264]
mov dword [esp], edx
mov dword [esp + 0x28], edx
call sub.msvcrt.dll_strncpy
cmp edi, ebp
mov edx, dword [esp + 0x28]
je 0x6c294fbb
mov eax, edi
sub eax, ebp
mov byte [esp + eax + 0x264], 0
mov al, byte [esp + 0x264]
cmp al, 0x2f
je 0x6c294f44
cmp al, 0x5c
je 0x6c294f44
test al, al
je 0x6c294da8
cmp byte [esp + 0x265], 0x3a
je 0x6c294f44
lea ebp, [ebx + 0x140]
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], edx
mov dword [esp + 8], ebp
mov dword [esp + 4], str._s_s_s
lea edi, [esp + 0x160]
mov dword [esp], edi
mov dword [esp + 0x28], edx
call sub.msvcrt.dll_sprintf
mov edx, dword [esp + 0x28]
mov dword [esp + 4], edx
mov dword [esp], ebp
call fcn.6c2949e8
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x13c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40000000
mov dword [esp], edi
call sub.KERNEL32.dll_CreateFileA
sub esp, 0x1c
mov ebp, eax
cmp ebp, 0xffffffff
je 0x6c294f10
mov eax, dword [ebx + 0x138]
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.6c2944b0
mov eax, dword [ebx + 0x13c]
test eax, eax
je 0x6c295024
lea edx, [esp + 0x36f]
mov dword [esp + 0x2c], edx
jmp 0x6c294e66
mov eax, dword [ebx + 0x13c]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x4000
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.6c294078
mov edi, eax
cmp eax, 0xffffff96
je 0x6c294fdd
cmp edi, 0
jl 0x6c294edc
je 0x6c294eca
mov dword [esp + 0x10], 0
lea eax, [esp + 0x368]
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov eax, dword [ebx + 0x13c]
mov dword [esp + 4], eax
mov dword [esp], ebp
call sub.KERNEL32.dll_WriteFile
sub esp, 0x14
test eax, eax
je 0x6c29503b
cmp byte [esp + 0x36f], 0
jne 0x6c294fe7
test edi, edi
jne 0x6c294e60
mov edi, 0x5000000
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.6c294430
dec esi
je 0x6c294bb3
mov dword [esp], ebp
call sub.KERNEL32.dll_CloseHandle
push edx
jmp 0x6c294bb3
mov dword [esp], eax
call fcn.6c293400
mov eax, dword [ebx]
jmp 0x6c294bfe
mov edi, 0x200
jmp 0x6c294bb3
mov dword [esp], eax
call fcn.6c293400
mov eax, dword [ebx]
jmp 0x6c294ca2
mov dword [esp + 4], ebp
mov dword [esp], 0
call fcn.6c2949e8
xor edi, edi
jmp 0x6c294bb3
mov dword [esp + 0xc], edi
mov dword [esp + 8], edx
mov dword [esp + 4], str._s_s
lea edi, [esp + 0x160]
mov dword [esp], edi
mov dword [esp + 0x28], edx
call sub.msvcrt.dll_sprintf
mov edx, dword [esp + 0x28]
mov dword [esp + 4], edx
mov dword [esp], 0
call fcn.6c2949e8
jmp 0x6c294de5
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.6c294430
mov dword [ebx + 4], 0xffffffff
jmp 0x6c294cea
mov dword [esp + 8], 0x104
mov dword [esp + 4], ebp
lea edx, [esp + 0x264]
mov dword [esp], edx
mov dword [esp + 0x28], edx
call sub.msvcrt.dll_strncpy
mov edi, ebp
mov edx, dword [esp + 0x28]
mov byte [esp + 0x264], 0
jmp 0x6c294da8
mov edi, 0x1000
cmp esi, 0xffffff96
mov eax, 0x5000000
cmovne edi, eax
jmp 0x6c294bb3
mov edi, 0x1000
jmp 0x6c294ee1
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.6c294430
lea eax, [esp + 0x150]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x140]
mov dword [esp + 8], eax
lea eax, [esp + 0x148]
mov dword [esp + 4], eax
mov dword [esp], ebp
call sub.KERNEL32.dll_SetFileTime
sub esp, 0x10
xor edi, edi
jmp 0x6c294eeb
mov dword [esp], 0x4000
call fcn.6c2df708
mov dword [ebx + 0x13c], eax
jmp 0x6c294e50
mov edi, 0x400
jmp 0x6c294ee1