Function at 0x1006e060
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c2e26
mov eax, dword fs:[0]
push eax
sub esp, 0x104
mov eax, dword [0x100eb6ac]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x70], eax
cmp dword [esi + 0x10], ebx
je 0x1006e1ff
cmp dword [esi + 0x14], 8
jb 0x1006e0ab
mov eax, dword [esi]
jmp 0x1006e0ad
mov eax, esi
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp edi, 0xffffffff
jne 0x1006e206
lea ecx, [ebp - 0x110]
push ecx
call fcn.10013470
mov dword [ebp - 4], ebx
push esi
push ecx
push str.._file:
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
lea edx, [ebp - 0x110]
push str.return_false1._GetLastError:
push edx
call fcn.1001c530
add esp, 0xc
push eax
call fcn.1006fa80
add esp, 4
push eax
call fcn.1001c530
add esp, 0xc
push eax
call fcn.1001dca0
add esp, 8
push 0x18
mov esi, 0xf
push str.CFileUtility::SetFileBuf
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
call fcn.100191b0
mov byte [ebp - 4], 1
push esi
push str.FileUtility.cpp
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.100191b0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x110]
push ecx
call fcn.10013570
mov byte [ebp - 4], 3
push eax
push 0x125
push ebx
call fcn.10013c70
push eax
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x2c]
call fcn.10072520
mov byte [ebp - 4], 2
cmp dword [ebp - 0x50], 8
jb 0x1006e19d
mov edx, dword [ebp - 0x64]
push edx
call fcn.1009c0c0
add esp, 4
xor eax, eax
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], ax
mov byte [ebp - 4], 1
mov edi, 0x10
cmp dword [ebp - 0x18], edi
jb 0x1006e1c7
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.1009c0c0
add esp, 4
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
mov byte [ebp - 4], bl
cmp dword [ebp - 0x34], edi
jb 0x1006e1e4
mov edx, dword [ebp - 0x48]
push edx
call fcn.1009c0c0
add esp, 4
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x110]
call fcn.10002af0
xor al, al
jmp 0x1006e36d
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x70]
push ebx
lea eax, [ebp - 0x74]
push eax
push ecx
push edx
push edi
mov byte [ebp - 0x65], 1
mov dword [ebp - 0x74], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1006e361
lea eax, [ebp - 0x110]
push eax
call fcn.10013470
mov dword [ebp - 4], 4
push esi
push ecx
push str.._file:
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
lea ecx, [ebp - 0x110]
push str.return_false2._GetLastError:
push ecx
call fcn.1001c530
add esp, 0xc
push eax
call fcn.1006fa80
add esp, 4
push eax
call fcn.1001c530
add esp, 0xc
push eax
call fcn.1001dca0
add esp, 8
push 0x18
mov esi, 0xf
push str.CFileUtility::SetFileBuf
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.100191b0
mov byte [ebp - 4], 5
push esi
push str.FileUtility.cpp
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
call fcn.100191b0
mov byte [ebp - 4], 6
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x110]
push eax
call fcn.10013570
mov byte [ebp - 4], 7
push eax
push 0x132
push ebx
call fcn.10013c70
push eax
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x48]
call fcn.10072520
mov byte [ebp - 4], 6
cmp dword [ebp - 0x50], 8
jb 0x1006e2f9
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.1009c0c0
add esp, 4
xor edx, edx
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], dx
mov byte [ebp - 4], 5
mov edi, 0x10
cmp dword [ebp - 0x34], edi
jb 0x1006e323
mov eax, dword [ebp - 0x48]
push eax
call fcn.1009c0c0
add esp, 4
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
mov byte [ebp - 4], 4
cmp dword [ebp - 0x18], edi
jb 0x1006e341
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.1009c0c0
add esp, 4
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x110]
call fcn.10002af0
mov edi, dword [ebp - 0x6c]
jmp 0x1006e364
mov bl, byte [ebp - 0x65]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1009c0cb
mov esp, ebp
pop ebp
ret