Function at 0x41cc40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
cmp dword [0x430040], 1
jle 0x41cc86
mov eax, dword [0x45518c]
add eax, dword [0x455190]
mov dword [esp + 8], eax
mov dword [esp + 4], str.Creating__d_PReP_boot_partition_s__n
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call fcn.0042c789
mov edx, dword [ebp - 0x14]
mov byte [edx + 0x1fe], 0x55
mov byte [edx + 0x1ff], 0xaa
cmp dword [0x455190], 0
je 0x41cd69
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x16
mov dword [esp + 4], 1
mov dword [esp], str.CHRP_boot_partition_1_n
call sub.msvcrt.dll_fwrite
mov eax, dword [ebp - 0x10]
shl eax, 4
add eax, dword [ebp - 0x14]
mov byte [eax + 0x1be], pe_nt_image_headers32
mov byte [eax + 0x1bf], 0xff
mov byte [eax + 0x1c0], 0xff
mov byte [eax + 0x1c1], 0xff
mov byte [eax + 0x1c2], 0x96
mov byte [eax + 0x1c3], 0xff
mov byte [eax + 0x1c4], 0xff
mov byte [eax + 0x1c5], 0xff
mov byte [eax + 0x1c6], 0
mov byte [eax + 0x1c7], 0
mov byte [eax + 0x1c8], 0
mov byte [eax + 0x1c9], 0
mov edx, dword [0x455018]
mov esi, edx
sub esi, dword [0x45501c]
mov edx, esi
shl edx, 0xb
mov esi, edx
shr esi, 9
mov edx, esi
mov byte [eax + 0x1ca], dl
mov edx, esi
sar edx, 8
mov byte [eax + 0x1cb], dl
mov edx, esi
sar edx, 0x10
mov byte [eax + 0x1cc], dl
mov byte [eax + 0x1cd], 0
inc dword [ebp - 0x10]
mov eax, dword [0x455190]
mov edx, eax
add eax, dword [0x45518c]
cmp eax, dword [ebp - 0x10]
jle 0x41cee8
mov eax, dword [ebp - 0x10]
sub eax, edx
mov eax, dword [eax*4 + 0x466b20]
mov dword [esp + 4], eax
mov eax, dword [0x455010]
mov dword [esp], eax
call fcn.0040913f
mov ebx, eax
test eax, eax
jne 0x41cdda
mov eax, dword [ebp - 0x10]
sub eax, dword [0x455190]
mov eax, dword [eax*4 + 0x466b20]
mov dword [esp + 8], eax
mov dword [esp + 4], str.Uh_oh__I_cant_find_the_boot_image___s___n
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call fcn.0042c789
mov dword [esp], 1
call sub.msvcrt.dll_exit
lea eax, [eax + 0xa]
mov dword [esp], eax
call fcn.004093e2
lea edi, [eax*4]
lea eax, [ebx + 0x12]
mov dword [esp], eax
call fcn.004093e2
mov esi, eax
test esi, esi
jns 0x41ce03
lea eax, [esi + 0x1ff]
sar eax, 9
lea esi, [eax + 1]
mov eax, dword [ebp - 0x10]
sub eax, dword [0x455190]
mov eax, dword [eax*4 + 0x466b20]
mov dword [esp + 0xc], eax
mov ebx, dword [ebp - 0x10]
inc ebx
mov dword [esp + 8], ebx
mov dword [esp + 4], str.PReP_boot_partition__d_is___s__n
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call fcn.0042c789
mov eax, dword [ebp - 0x10]
shl eax, 4
add eax, dword [ebp - 0x14]
mov byte [eax + 0x1be], pe_nt_image_headers32
mov byte [eax + 0x1bf], 0xff
mov byte [eax + 0x1c0], 0xff
mov byte [eax + 0x1c1], 0xff
mov byte [eax + 0x1c2], 0x41
mov byte [eax + 0x1c3], 0xff
mov byte [eax + 0x1c4], 0xff
mov byte [eax + 0x1c5], 0xff
mov edx, edi
mov byte [eax + 0x1c6], dl
mov edx, edi
sar edx, 8
mov byte [eax + 0x1c7], dl
mov edx, edi
sar edx, 0x10
mov byte [eax + 0x1c8], dl
mov edx, edi
sar edx, 0x18
mov byte [eax + 0x1c9], dl
mov edx, esi
mov byte [eax + 0x1ca], dl
mov edx, esi
sar edx, 8
mov byte [eax + 0x1cb], dl
mov edx, esi
sar edx, 0x10
mov byte [eax + 0x1cc], dl
mov edx, esi
sar edx, 0x18
mov byte [eax + 0x1cd], dl
mov dword [ebp - 0x10], ebx
mov edx, dword [0x455190]
mov eax, dword [0x45518c]
add eax, edx
cmp eax, ebx
jg 0x41cd7f
cmp dword [ebp - 0x10], 3
jg 0x41cf2a
mov eax, dword [ebp - 0x10]
shl eax, 4
add eax, dword [ebp - 0x14]
mov byte [eax + 0x1bf], 0xff
mov byte [eax + 0x1c0], 0xff
mov byte [eax + 0x1c1], 0xff
mov byte [eax + 0x1c3], 0xff
mov byte [eax + 0x1c4], 0xff
mov byte [eax + 0x1c5], 0xff
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 3
jle 0x41ceee
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret