Function at 0x100e0580
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x105520d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 0xc]
mov edx, dword [esi + 0x134]
mov dword [ebp - 0x22c], eax
mov eax, dword [esi + 0x104]
push edi
xor edi, edi
push eax
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x21c], edi
mov dword [ebp - 0x208], edi
mov dword [ebp - 0x20c], edi
mov dword [ebp - 0x228], edi
mov dword [ebp - 0x214], edi
or ebx, 0xffffffff
mov dword [ebp - 0x210], edx
call fcn.10203b14
mov dword [ebp - 0x218], eax
xor eax, eax
add esp, 4
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x224], eax
cmp dword [esi + 0x108], eax
jbe 0x100e093f
jmp 0x100e0610
mov ecx, dword [ebp - 0x210]
mov edx, dword [ecx + 8]
test edx, edx
jne 0x100e0768
mov edx, dword [ebp - 0x228]
inc edx
cmp dword [ecx + 0xc], edx
je 0x100e06e8
cmp ebx, 0xffffffff
je 0x100e0674
mov ecx, dword [ebp - 0x208]
sub ecx, dword [ebp - 0x20c]
push 0
shl ecx, 8
push ecx
shrd eax, edi, 9
push 0
push eax
mov eax, dword [ebp - 0x220]
lea edx, [ebp - 0x204]
push edx
push eax
mov ecx, esi
shr edi, 9
call fcn.100e0340
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x210]
mov eax, dword [esi + 0x104]
mul dword [ecx + 0xc]
mov edi, edx
mov edx, dword [ebp - 0x224]
mov dword [ebp - 0x234], eax
mov ecx, edi
shrd eax, ecx, 9
push eax
mov eax, dword [ebp - 0x22c]
push edx
push eax
shr ecx, 9
lea ecx, [ebp - 0x204]
push str._s_raw__i__i.bin
push ecx
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0x14
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
lea edx, [ebp - 0x204]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x100e08fb
mov eax, dword [ebp - 0x208]
mov dword [ebp - 0x20c], eax
mov ecx, dword [esi + 0x104]
imul ecx, dword [ebp - 0x208]
xor edx, edx
add ecx, dword [esi + 0x138]
lea eax, [esi + 0x144]
adc edx, dword [esi + 0x13c]
push edx
push ecx
push eax
mov ecx, esi
call fcn.100dfbb0
mov ecx, dword [esi + 0x104]
mov edx, dword [ebp - 0x218]
lea eax, [esi + 0x144]
push eax
lea eax, [ebp - 0x21c]
push eax
mov eax, dword [esi + 0x140]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100e074c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x214], eax
mov edx, dword [esi + 0x104]
mov eax, dword [ebp - 0x218]
push 0
lea ecx, [ebp - 0x21c]
push ecx
push edx
push eax
jmp 0x100e087f
cmp edx, 2
jne 0x100e0892
cmp ebx, 0xffffffff
je 0x100e07ae
mov ecx, dword [ebp - 0x208]
sub ecx, dword [ebp - 0x20c]
push 0
shl ecx, 8
push ecx
shrd eax, edi, 9
push 0
push eax
mov eax, dword [ebp - 0x220]
lea edx, [ebp - 0x204]
push edx
push eax
mov ecx, esi
shr edi, 9
call fcn.100e0340
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x22c]
push ecx
lea edx, [ebp - 0x204]
push str._s_backup_gpt.bin
or edi, 0xffffffff
push edx
mov dword [ebp - 0x234], edi
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0xc
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, edi
je 0x100e08fb
mov eax, dword [ebp - 0x208]
mov edx, dword [esi + 0x104]
imul edx, eax
mov dword [ebp - 0x20c], eax
xor eax, eax
add edx, dword [esi + 0x138]
lea ecx, [esi + 0x144]
adc eax, dword [esi + 0x13c]
push eax
push edx
push ecx
mov ecx, esi
call fcn.100dfbb0
mov edx, dword [esi + 0x104]
lea eax, [esi + 0x144]
push eax
mov eax, dword [ebp - 0x218]
lea ecx, [ebp - 0x21c]
push ecx
mov ecx, dword [esi + 0x140]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100e0868
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x214], eax
mov eax, dword [esi + 0x104]
mov ecx, dword [ebp - 0x218]
push 0
lea edx, [ebp - 0x21c]
push edx
push eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x234]
mov ecx, dword [ebp - 0x210]
mov edx, dword [ecx + 4]
add dword [ebp - 0x208], edx
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x228], edx
mov edx, dword [ecx]
lea ecx, [ecx + edx*8 + 8]
mov dword [ebp - 0x210], ecx
mov ecx, dword [ebp - 0x224]
inc ecx
mov dword [ebp - 0x224], ecx
cmp ecx, dword [esi + 0x108]
jb 0x100e0610
cmp ebx, 0xffffffff
je 0x100e093f
mov edx, eax
and edx, edi
push 0
cmp edx, 0xffffffff
jne 0x100e0909
mov eax, dword [ebp - 0x208]
sub eax, dword [ebp - 0x20c]
mov ecx, dword [ebp - 0x220]
shl eax, 8
push eax
push edx
push edx
lea eax, [ebp - 0x204]
push eax
push ecx
jmp 0x100e0931
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x214], eax
jmp 0x100e093f
mov ecx, dword [ebp - 0x208]
sub ecx, dword [ebp - 0x20c]
shrd eax, edi, 9
shl ecx, 8
push ecx
push 0
push eax
mov eax, dword [ebp - 0x220]
lea edx, [ebp - 0x204]
push edx
shr edi, 9
push eax
mov ecx, esi
call fcn.100e0340
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x218]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x214]
add esp, 4
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10203cc8
mov esp, ebp
pop ebp
ret 8