Function at 0x1003c8b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34c
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 4], 0xffffffff
je 0x1003c8cb
mov ecx, dword [edi]
call fcn.1003d4c0
mov ecx, dword [edi]
mov ebx, dword [ebp + 8]
mov dword [edi + 4], 0xffffffff
cmp ebx, dword [ecx + 4]
jl 0x1003c8ea
mov eax, 0x10000
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp ebx, dword [ecx + 0x10]
jge 0x1003c8f4
call fcn.1003dbe0
mov eax, dword [edi]
cmp dword [eax + 0x10], ebx
jge 0x1003c950
jmp 0x1003c900
mov esi, dword [edi]
test esi, esi
je 0x1003c949
cmp dword [esi + 0x18], 0
je 0x1003c949
mov edx, dword [esi + 0x10]
inc edx
cmp edx, dword [esi + 4]
je 0x1003c949
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.1003dc40
add esp, 0x1c
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x18], eax
mov eax, dword [edi]
cmp dword [eax + 0x10], ebx
jl 0x1003c900
lea eax, [ebp - 0x240]
mov ecx, edi
push eax
push ebx
call fcn.1003cc70
test byte [ebp - 0x138], 0x10
je 0x1003c9a7
mov edx, dword [ebp + 0xc]
mov al, byte [edx]
cmp al, 0x2f
je 0x1003c995
cmp al, 0x5c
je 0x1003c995
test al, al
je 0x1003c97f
cmp byte [edx + 1], 0x3a
je 0x1003c995
lea ecx, [edi + 0x140]
call fcn.1003cb80
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
xor ecx, ecx
call fcn.1003cb80
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov esi, dword [ebp + 0xc]
mov ebx, esi
mov ecx, esi
mov al, byte [esi]
test al, al
je 0x1003c9c7
cmp al, 0x2f
je 0x1003c9bc
cmp al, 0x5c
jne 0x1003c9bf
lea ebx, [ecx + 1]
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x1003c9b4
mov ecx, esi
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003c9d0
sub ecx, edx
push esi
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.MSVCR120.dll_strcpy_s]
add esp, 0xc
cmp ebx, esi
jne 0x1003c9fb
mov byte [ebp - 0x110], 0
jmp 0x1003ca22
mov eax, ebx
sub eax, esi
mov byte [ebp + eax - 0x110], 0
mov al, byte [ebp - 0x110]
cmp al, 0x2f
je 0x1003ca4a
cmp al, 0x5c
je 0x1003ca4a
test al, al
je 0x1003ca22
cmp byte [ebp - 0x10f], 0x3a
je 0x1003ca4a
push ebx
lea eax, [ebp - 0x110]
push eax
lea esi, [edi + 0x140]
push esi
lea eax, [ebp - 0x348]
push str._s_s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
mov ecx, esi
jmp 0x1003ca69
push ebx
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x348]
push 0x1005a660
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
xor ecx, ecx
lea edx, [ebp - 0x110]
call fcn.1003cb80
push 0
push dword [ebp - 0x138]
lea eax, [ebp - 0x348]
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1003caa9
mov eax, 0x200
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [edi + 0x138]
mov ecx, dword [edi]
call fcn.1003d780
cmp dword [edi + 0x13c], 0
jne 0x1003cad2
push 0x4000
call fcn.10013326
add esp, 4
mov dword [edi + 0x13c], eax
mov dword [ebp + 8], 0
lea esp, [esp]
mov edx, dword [edi + 0x13c]
lea eax, [ebp + 0xf]
mov ecx, dword [edi]
push eax
push 0x4000
call fcn.1003d540
mov esi, eax
add esp, 8
cmp esi, 0xffffff96
je 0x1003cb58
test esi, esi
js 0x1003cb28
jle 0x1003cb1e
push 0
lea eax, [ebp - 4]
push eax
push esi
push dword [edi + 0x13c]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1003cb31
cmp byte [ebp + 0xf], 0
jne 0x1003cb3a
test esi, esi
jne 0x1003cae0
mov dword [ebp + 8], 0x5000000
jmp 0x1003cb5f
mov dword [ebp + 8], 0x400
jmp 0x1003cb5f
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x12c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
jmp 0x1003cb5f
mov dword [ebp + 8], 0x1000
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [edi]
call fcn.1003d4c0
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10