Function at 0x1000dcc9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x348
mov eax, dword [0x1002b060]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x14], 3
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov esi, ecx
je 0x1000dd08
cmp dword [ebp + 0x14], 2
je 0x1000ddb4
cmp dword [ebp + 0x14], 1
je 0x1000ddb4
mov eax, 0x10000
jmp 0x1000e03f
mov eax, dword [esi + 4]
mov edi, dword [ebp + 8]
cmp edi, eax
je 0x1000dd57
cmp eax, 0xffffffff
je 0x1000dd1f
push dword [esi]
call fcn.1000bf6d
pop ecx
mov eax, dword [esi]
or dword [esi + 4], 0xffffffff
cmp edi, dword [eax + 4]
jge 0x1000dcfe
cmp edi, dword [eax + 0x10]
jge 0x1000dd3f
push eax
call fcn.1000bd29
jmp 0x1000dd3e
push dword [esi]
call fcn.1000bd6a
pop ecx
mov eax, dword [esi]
cmp dword [eax + 0x10], edi
jl 0x1000dd37
push dword [esi + 0x138]
push eax
call fcn.1000d897
pop ecx
pop ecx
mov dword [esi + 4], edi
lea eax, [ebp - 0x339]
push eax
push dword [ebp + 0x10]
push ebx
push dword [esi]
call fcn.1000d9f6
mov edi, eax
add esp, 0x10
test edi, edi
jg 0x1000dd7e
push dword [esi]
call fcn.1000bf6d
or dword [esi + 4], 0xffffffff
pop ecx
cmp byte [ebp - 0x339], 0
je 0x1000dd8e
xor eax, eax
jmp 0x1000e03f
test edi, edi
jle 0x1000dd9c
mov eax, 0x600
jmp 0x1000e03f
xor eax, eax
cmp edi, 0xffffff96
setne al
dec eax
and eax, 0xfb001000
add eax, 0x5000000
jmp 0x1000e03f
cmp dword [esi + 4], 0xffffffff
je 0x1000ddc2
push dword [esi]
call fcn.1000bf6d
pop ecx
mov eax, dword [esi]
mov edi, dword [ebp + 8]
or dword [esi + 4], 0xffffffff
cmp edi, dword [eax + 4]
jge 0x1000dcfe
cmp edi, dword [eax + 0x10]
jge 0x1000dde9
push eax
call fcn.1000bd29
jmp 0x1000dde8
push dword [esi]
call fcn.1000bd6a
pop ecx
mov eax, dword [esi]
cmp dword [eax + 0x10], edi
jl 0x1000dde1
lea eax, [ebp - 0x338]
push eax
push edi
mov ecx, esi
call fcn.1000c05f
mov eax, dword [ebp - 0x230]
shr eax, 4
test al, 1
je 0x1000de43
cmp dword [ebp + 0x14], 1
je 0x1000dd87
mov al, byte [ebx]
cmp al, 0x2f
je 0x1000de2a
cmp al, 0x5c
je 0x1000de2a
test al, al
je 0x1000de2f
cmp byte [ebx + 1], 0x3a
jne 0x1000de2f
push ebx
push 0
jmp 0x1000de37
push ebx
add esi, 0x140
push esi
call fcn.1000c547
pop ecx
pop ecx
jmp 0x1000dd87
cmp dword [ebp + 0x14], 1
mov byte [ebp - 0x20c], 0
jne 0x1000de5b
mov dword [ebp - 0x344], ebx
jmp 0x1000deea
mov al, byte [ebx]
mov edi, ebx
mov ecx, ebx
jmp 0x1000de71
cmp al, 0x2f
je 0x1000de6b
cmp al, 0x5c
jne 0x1000de6e
lea edi, [ecx + 1]
inc ecx
mov al, byte [ecx]
test al, al
jne 0x1000de63
push 0x104
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.1001577f
add esp, 0xc
cmp edi, ebx
jne 0x1000defd
mov byte [ebp - 0x108], 0
push edi
lea eax, [ebp - 0x108]
push eax
lea ebx, [esi + 0x140]
push ebx
lea eax, [ebp - 0x20c]
push str._s_s_s
push eax
call fcn.100137e6
lea eax, [ebp - 0x108]
push eax
push ebx
call fcn.1000c547
add esp, 0x1c
xor eax, eax
push eax
push dword [ebp - 0x230]
push 2
push eax
push eax
push 0x40000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov dword [ebp - 0x344], eax
cmp dword [ebp - 0x344], 0xffffffff
jne 0x1000df64
mov eax, 0x200
jmp 0x1000e03f
mov eax, edi
sub eax, ebx
mov byte [ebp + eax - 0x108], 0
cmp byte [ebp - 0x108], 0x2f
je 0x1000df35
cmp byte [ebp - 0x108], 0x5c
je 0x1000df35
cmp byte [ebp - 0x108], 0
je 0x1000de95
cmp byte [ebp - 0x107], 0x3a
jne 0x1000de95
push edi
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push str._s_s
push eax
call fcn.100137e6
lea eax, [ebp - 0x108]
push eax
push 0
call fcn.1000c547
add esp, 0x18
jmp 0x1000dec5
push dword [esi + 0x138]
push dword [esi]
call fcn.1000d897
cmp dword [esi + 0x13c], 0
pop ecx
pop ecx
mov ebx, 0x4000
jne 0x1000df8e
push ebx
call fcn.100138d3
pop ecx
mov dword [esi + 0x13c], eax
and dword [ebp - 0x340], 0
lea eax, [ebp - 0x339]
push eax
push ebx
push dword [esi + 0x13c]
push dword [esi]
call fcn.1000d9f6
mov edi, eax
add esp, 0x10
cmp edi, 0xffffff96
je 0x1000e050
test edi, edi
js 0x1000dfeb
jle 0x1000dfde
push 0
lea eax, [ebp - 0x348]
push eax
push edi
push dword [esi + 0x13c]
push dword [ebp - 0x344]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x1000e05c
cmp byte [ebp - 0x339], 0
jne 0x1000dff5
test edi, edi
jne 0x1000df95
mov dword [ebp - 0x340], 0x5000000
push dword [esi]
call fcn.1000bf6d
cmp dword [ebp - 0x340], 0
pop ecx
jne 0x1000e027
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 0x344]
call dword [sym.imp.KERNEL32.DLL_SetFileTime]
cmp dword [ebp + 0x14], 1
je 0x1000e039
push dword [ebp - 0x344]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 0x340]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001386a
leave
ret 0x10
mov dword [ebp - 0x340], 0x1000
jmp 0x1000dff5
mov dword [ebp - 0x340], 0x400
jmp 0x1000dff5