Function at 0x10006890
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x344
mov eax, dword [0x1002b4b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
cmp dword [ebx + 4], 0xffffffff
mov esi, edx
push edi
mov dword [ebp - 0x33c], esi
je 0x100068bd
mov edi, dword [ebx]
call fcn.10005fb0
mov eax, dword [ebx]
mov edi, dword [ebp + 8]
mov dword [ebx + 4], 0xffffffff
cmp edi, dword [eax + 4]
jl 0x100068e6
pop edi
pop esi
mov eax, 0x10000
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f688
mov esp, ebp
pop ebp
ret 4
cmp edi, dword [eax + 0x10]
jge 0x100068f8
mov esi, eax
call fcn.100058f0
mov esi, dword [ebp - 0x33c]
mov eax, dword [ebx]
cmp dword [eax + 0x10], edi
jge 0x10006953
nop
mov esi, dword [ebx]
test esi, esi
je 0x10006946
cmp dword [esi + 0x18], 0
je 0x10006946
mov eax, dword [esi + 0x10]
inc eax
cmp eax, dword [esi + 4]
je 0x10006946
mov ecx, dword [esi + 0x50]
add ecx, dword [esi + 0x4c]
mov edx, dword [esi + 0x48]
push 0
lea ecx, [ecx + edx + 0x2e]
add dword [esi + 0x14], ecx
mov dword [esi + 0x10], eax
push 0
lea edx, [esi + 0x78]
push edx
lea eax, [esi + 0x28]
push eax
mov eax, esi
call fcn.10005490
add esp, 0x10
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x18], eax
mov ecx, dword [ebx]
cmp dword [ecx + 0x10], edi
jl 0x10006900
mov esi, dword [ebp - 0x33c]
push edi
lea edx, [ebp - 0x338]
mov ecx, ebx
call fcn.10006190
test byte [ebp - 0x230], 0x10
mov al, byte [esi]
je 0x100069c3
cmp al, 0x2f
je 0x1000697e
cmp al, 0x5c
je 0x1000697e
test al, al
je 0x1000699e
cmp byte [esi + 1], 0x3a
jne 0x1000699e
push esi
push 0
call fcn.10006790
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f688
mov esp, ebp
pop ebp
ret 4
push esi
add ebx, 0x140
push ebx
call fcn.10006790
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f688
mov esp, ebp
pop ebp
ret 4
mov edi, esi
mov ecx, esi
test al, al
je 0x100069e3
jmp 0x100069d0
cmp al, 0x2f
je 0x100069d8
cmp al, 0x5c
jne 0x100069db
lea edi, [ecx + 1]
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x100069d0
lea edx, [ebp - 0x108]
mov eax, esi
sub edx, esi
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x100069f0
cmp edi, esi
jne 0x10006a75
mov byte [ebp - 0x108], cl
push edi
lea eax, [ebp - 0x108]
push eax
lea esi, [ebx + 0x140]
push esi
lea ecx, [ebp - 0x20c]
push str._s_s_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea edx, [ebp - 0x108]
push edx
push esi
call fcn.10006790
add esp, 0x1c
mov eax, dword [ebp - 0x230]
push 0
push eax
push 2
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10006ad4
pop edi
pop esi
mov eax, 0x200
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f688
mov esp, ebp
pop ebp
ret 4
mov edx, edi
sub edx, esi
mov byte [ebp + edx - 0x108], 0
mov al, byte [ebp - 0x108]
cmp al, 0x2f
je 0x10006aa4
cmp al, 0x5c
je 0x10006aa4
test al, al
je 0x10006a04
cmp byte [ebp - 0x107], 0x3a
jne 0x10006a04
push edi
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x20c]
push 0x10027d18
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea edx, [ebp - 0x108]
push edx
push 0
call fcn.10006790
add esp, 0x18
jmp 0x10006a35
mov edx, dword [ebx + 0x138]
mov eax, dword [ebx]
push edx
call fcn.10005be0
add esp, 4
cmp dword [ebx + 0x13c], 0
jne 0x10006b01
push 0x4000
call fcn.1000fe3e
add esp, 4
mov dword [ebx + 0x13c], eax
mov dword [ebp - 0x33c], 0
jmp 0x10006b10
mov ecx, dword [ebx + 0x13c]
lea eax, [ebp - 0x33d]
push eax
mov eax, dword [ebx]
push ecx
mov ecx, 0x4000
call fcn.10005d50
mov esi, eax
add esp, 8
cmp esi, 0xffffff96
je 0x10006b6f
test esi, esi
js 0x10006b63
jle 0x10006b56
mov eax, dword [ebx + 0x13c]
push 0
lea edx, [ebp - 0x344]
push edx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10006b7b
cmp byte [ebp - 0x33d], 0
jne 0x10006b87
test esi, esi
jne 0x10006b10
mov dword [ebp - 0x33c], 0x5000000
jmp 0x10006ba3
mov dword [ebp - 0x33c], 0x1000
jmp 0x10006ba3
mov dword [ebp - 0x33c], 0x400
jmp 0x10006ba3
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x22c]
push edx
lea eax, [ebp - 0x224]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebx]
call fcn.10005fb0
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x33c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000f688
mov esp, ebp
pop ebp
ret 4