Function at 0x100e0340
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1020b54b
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x105520d0]
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, dword [ebp + 8]
mov dword [ebp - 0x434], ecx
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
mov eax, ecx
mov dword [ebp - 0x418], 0xf
mov dword [ebp - 0x41c], ebx
mov byte [ebp - 0x42c], bl
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x100e0397
sub eax, edi
push eax
push ecx
lea ecx, [ebp - 0x42c]
call fcn.10003320
push 2
push 0xffffffffffffffff
push 0x102d8e64
lea ecx, [ebp - 0x42c]
mov dword [ebp - 4], ebx
call fcn.100661c0
push ebx
push 0x80
push 3
push ebx
push ebx
push 0xc0000000
push esi
mov edi, eax
mov dword [ebp - 0x430], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100e03f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x100e053b
cmp edi, 0xffffffff
je 0x100e0409
inc edi
push edi
push ebx
lea ecx, [ebp - 0x42c]
call fcn.10002840
push 2
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov edx, eax
and edx, ecx
cmp edx, 0xffffffff
mov edx, dword [ebp - 0x42c]
jne 0x100e0492
cmp dword [ebp - 0x418], 0x10
jae 0x100e0438
lea edx, [ebp - 0x42c]
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x1c]
push 0xffffffffffffffff
mov edi, eax
mov ebx, ecx
push 0xfffffe00
shrd edi, ebx, 1
shr ebx, 1
push ebx
push edi
push ecx
push eax
push edx
push str._program_SECTOR_SIZE_IN_BYTES_512__file_sector_offset_0__filename__s__label_ffu_image__num_partition_sectors__I64d__physical_partition_number_0__size_in_KB__I64d__sparse_false__start_byte_hex_0x_I64x__start_sector_NUM_DISK_SECTORS_256____n
lea eax, [ebp - 0x410]
push 0x400
push eax
call dword [sym.imp.MSVCR100.dll_sprintf_s]
mov eax, dword [ebp - 0x42c]
add esp, 0x28
cmp dword [ebp - 0x418], 0x10
jae 0x100e0483
lea eax, [ebp - 0x42c]
mov ecx, dword [ebp - 0x434]
push eax
push str.Adding_the__s_file_entry_to_the_rawprogram0.xml_n
push ecx
jmp 0x100e04fc
cmp dword [ebp - 0x418], 0x10
jae 0x100e04a1
lea edx, [ebp - 0x42c]
push eax
shld ecx, eax, 9
push ecx
mov ecx, dword [ebp + 0x1c]
shl eax, 9
push eax
mov eax, dword [ebp + 0x18]
mov edi, eax
mov ebx, ecx
shrd edi, ebx, 1
shr ebx, 1
push ebx
push edi
push ecx
push eax
push edx
push str._program_SECTOR_SIZE_IN_BYTES_512__file_sector_offset_0__filename__s__label_ffu_image__num_partition_sectors__I64d__physical_partition_number_0__size_in_KB__I64d__sparse_false__start_byte_hex_0x_I64x__start_sector__i____n
lea edx, [ebp - 0x410]
push 0x400
push edx
call dword [sym.imp.MSVCR100.dll_sprintf_s]
mov eax, dword [ebp - 0x42c]
add esp, 0x2c
cmp dword [ebp - 0x418], 0x10
jae 0x100e04ef
lea eax, [ebp - 0x42c]
push eax
mov eax, dword [ebp - 0x434]
push str.Adding_the__s_file_entry_to_the_rawprogram0.xml_n
push eax
call fcn.100e0070
mov edi, dword [ebp - 0x430]
lea eax, [ebp - 0x410]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100e0513
push 0
lea ecx, [ebp - 0x438]
push ecx
sub eax, edx
push eax
lea edx, [ebp - 0x410]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x418], 0x10
jb 0x100e0553
mov eax, dword [ebp - 0x42c]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, edi
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.10203cc8
mov esp, ebp
pop ebp
ret 0x18