Function at 0x100ff740
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10193ed8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x101f62b4]
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 esi, edx
mov edi, ecx
cmp dword [edi + 0x14], 8
mov eax, edi
mov ebx, dword [ebp + 8]
jb 0x100ff77c
mov eax, dword [edi]
push 0
push 0x200080
push 2
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x34], eax
cmp eax, 0xffffffff
jne 0x100ff866
test ebx, ebx
je 0x100ff7ce
cmp dword [edi + 0x14], 8
jb 0x100ff7ad
mov edi, dword [edi]
mov esi, dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.Failed_to_create_file_at_path_:_s_Error:_d
push str.FileUtils
push 0x101ace0c
push 0x32
push ebx
jmp 0x100ff84f
cmp dword [0x101fc274], 0
je 0x100ff81c
cmp dword [edi + 0x14], 8
jb 0x100ff7df
mov edi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [0x101fc274]
mov ecx, esi
push eax
push edi
push str.Failed_to_create_file_at_path_:_s_Error:_d
push 0x101ace0c
push 0x101ace0c
push str.FileUtils
push str.OOBEUtils
push 0x32
call dword [0x1019a4f8]
call esi
add esp, 0x20
xor al, al
jmp 0x100ff9a2
mov esi, dword [0x101fc278]
test esi, esi
je 0x100ff85f
cmp dword [edi + 0x14], 8
jb 0x100ff82e
mov edi, dword [edi]
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.Failed_to_create_file_at_path_:_s_Error:_d
push str.FileUtils
push 0x101ace0c
push 0x32
push dword [0x101fc278]
mov esi, dword [esi + 0x34]
mov ecx, esi
call dword [0x1019a4f8]
call esi
add esp, 0x1c
xor al, al
jmp 0x100ff9a2
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
mov dword [ebp - 4], 0
cmp dword [esi + 0x14], 8
jb 0x100ff88e
mov esi, dword [esi]
push 0
lea edx, [ebp - 0x2c]
mov ecx, esi
call fcn.101012c0
add esp, 4
mov byte [ebp - 0x2d], al
test al, al
je 0x100ff995
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x14]
push 0
push eax
push dword [ebp - 0x1c]
lea edx, [ebp - 0x2c]
cmovae edx, dword [ebp - 0x2c]
push edx
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100ff8e2
mov ecx, edi
call fcn.10100130
push dword [ebp - 0x34]
mov bl, byte [ebp - 0x2d]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100ff998
test ebx, ebx
je 0x100ff903
mov esi, dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_write_in_file_ERROR_VAL:_d_n
push str.FileUtils
push 0x101ace0c
push 0x32
push ebx
jmp 0x100ff978
cmp dword [0x101fc274], 0
je 0x100ff94e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [0x101fc274]
mov ecx, esi
push eax
push str.Failed_to_write_in_file_ERROR_VAL:_d_n
push 0x101ace0c
push 0x101ace0c
push str.FileUtils
push str.OOBEUtils
push 0x32
call dword [0x1019a4f8]
call esi
add esp, 0x1c
xor bl, bl
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100ff998
mov esi, dword [0x101fc278]
test esi, esi
je 0x100ff988
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_write_in_file_ERROR_VAL:_d_n
push str.FileUtils
push 0x101ace0c
push 0x32
push dword [0x101fc278]
mov esi, dword [esi + 0x34]
mov ecx, esi
call dword [0x1019a4f8]
call esi
add esp, 0x18
push dword [ebp - 0x34]
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100ff998
mov bl, byte [ebp - 0x2d]
lea ecx, [ebp - 0x2c]
call fcn.1000ad20
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.1015c875
mov esp, ebp
pop ebp
ret