Function at 0x4138a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43f7bd
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x456014]
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
jb 0x4138d9
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 - 0x30], eax
cmp eax, 0xffffffff
jne 0x413996
cmp dword [0x458214], 0
je 0x41394c
cmp dword [edi + 0x14], 8
jb 0x41390f
mov edi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [0x458214]
mov ecx, esi
push eax
push edi
push str.Failed_to_create_file_at_path_:_s_Error:_d
push 0x44cf3c
push 0x44cf3c
push 0x451068
push str.OOBEUtils
push 0x32
call dword [0x44123c]
call esi
add esp, 0x20
xor al, al
jmp 0x413af4
mov esi, dword [0x458218]
test esi, esi
je 0x41398f
cmp dword [edi + 0x14], 8
jb 0x41395e
mov edi, dword [edi]
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [esi + 0x34]
mov ecx, esi
push eax
push edi
push str.Failed_to_create_file_at_path_:_s_Error:_d
push 0x451068
push 0x44cf3c
push 0x32
push dword [0x458218]
call dword [0x44123c]
call esi
add esp, 0x1c
xor al, al
jmp 0x413af4
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
push ecx
lea edx, [ebp - 0x2c]
mov dword [ebp - 4], 0
mov ecx, esi
call fcn.00417a20
mov bl, al
add esp, 4
test bl, bl
je 0x413ac2
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x14]
push 0
push eax
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x2c]
push ecx
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x413a3d
cmp dword [edi + 0x10], 0
je 0x413ab9
cmp dword [edi + 0x14], 8
jb 0x413a09
mov edi, dword [edi]
push 0
push 0xa0000080
push 4
push 0
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x413ab9
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x413ab9
cmp dword [0x458214], 0
je 0x413a7d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [0x458214]
mov ecx, esi
push eax
push str.Failed_to_write_in_file_ERROR_VAL:_d_n
push 0x44cf3c
push 0x44cf3c
push 0x451068
push str.OOBEUtils
push 0x32
call dword [0x44123c]
call esi
add esp, 0x1c
jmp 0x413ab7
mov esi, dword [0x458218]
test esi, esi
je 0x413ab7
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [esi + 0x34]
mov ecx, esi
push eax
push str.Failed_to_write_in_file_ERROR_VAL:_d_n
push 0x451068
push 0x44cf3c
push 0x32
push dword [0x458218]
call dword [0x44123c]
call esi
add esp, 0x18
xor bl, bl
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x10
jb 0x413af2
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x413ae8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413b10
push ecx
push edx
call fcn.0041cdfe
add esp, 8
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.0041cdc0
mov esp, ebp
pop ebp
ret
call fcn.0042200f
int3