Function at 0x401c53
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [ebp + 0xc]
mov byte [ebp - 9], al
mov dword [esp + 8], 0x200
lea eax, [ebp - 0x218]
mov dword [esp + 4], eax
mov eax, dword [0x4082e0]
mov dword [esp], eax
call sub.KERNEL32.dll_GetModuleFileNameA
sub esp, 0xc
lea eax, [ebp - 0x218]
mov dword [esp + 4], 0x5c
mov dword [esp], eax
call sub.msvcrt.dll_strrchr
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
jne 0x401cb7
lea eax, [ebp - 0x218]
mov dword [ebp - 0x21c], eax
jmp 0x401cbf
lea eax, [ebp - 0x21c]
inc dword [eax]
mov dword [esp + 4], str.grubinst.exe___pause
mov eax, dword [ebp - 0x21c]
mov dword [esp], eax
call sub.msvcrt.dll_strcpy
lea eax, [ebp - 0x218]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov dword [ebp - 0x23c], eax
mov dword [esp + 4], 0x6e
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.USER32.dll_IsDlgButtonChecked
sub esp, 8
cmp eax, 1
jne 0x401d71
mov dword [esp + 4], 0x68
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.USER32.dll_IsDlgButtonChecked
sub esp, 8
cmp eax, 1
je 0x401d37
mov dword [esp + 4], 0x1fc
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.004015f6
jmp 0x4025b3
mov dword [esp + 4], str.__output
lea eax, [ebp - 0x218]
add eax, dword [ebp - 0x23c]
mov dword [esp], eax
call sub.msvcrt.dll_strcpy
lea eax, [ebp - 0x218]
add eax, dword [ebp - 0x23c]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov edx, eax
lea eax, [ebp - 0x23c]
add dword [eax], edx
mov dword [esp + 4], 0x79
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.USER32.dll_IsDlgButtonChecked
sub esp, 8
cmp eax, 1
jne 0x401dc6
mov dword [esp + 4], str.__read_only
lea eax, [ebp - 0x218]
add eax, dword [ebp - 0x23c]
mov dword [esp], eax
call sub.msvcrt.dll_strcpy
lea eax, [ebp - 0x218]
add eax, dword [ebp - 0x23c]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov edx, eax
lea eax, [ebp - 0x23c]
add dword [eax], edx
mov dword [esp + 4], 0x7a
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.USER32.dll_IsDlgButtonChecked
sub esp, 8
cmp eax, 1
jne 0x401e1b
mov dword [esp + 4], str.__verbose
lea eax, [ebp - 0x218]
add eax, dword [ebp - 0x23c]
mov dword [esp], eax
call sub.msvcrt.dll_strcpy
lea eax, [ebp - 0x218]
add eax, dword [ebp - 0x23c]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov edx, eax
lea eax, [ebp - 0x23c]
add dword [eax], edx
mov dword [esp + 4], 0x7b
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.USER32.dll_IsDlgButtonChecked
sub esp, 8
cmp eax, 1
jne 0x401e70
mov dword [esp + 4], str.__no_backup_mbr
lea eax, [ebp - 0x218]
add eax, dword [ebp - 0x23c]
mov dword [esp], eax
call sub.msvcrt.dll_strcpy
lea eax, [ebp - 0x218]
add eax, dword [ebp - 0x23c]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov edx, eax
lea eax, [ebp - 0x23c]
add dword [eax], edx
mov dword [esp + 4], 0x7c
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.USER32.dll_IsDlgButtonChecked
sub esp, 8
cmp eax, 1
jne 0x401ec5
mov dword [esp + 4], str.__mbr_disable_floppy
lea eax, [ebp - 0x218]
add eax, dword [ebp - 0x23c]
mov dword [esp], eax
call sub.msvcrt.dll_strcpy
lea eax, [ebp - 0x218]
add eax, dword [ebp - 0x23c]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov edx, eax
lea eax, [ebp - 0x23c]
add dword [eax], edx
mov dword [esp + 4], 0x7d
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.USER32.dll_IsDlgButtonChecked
sub esp, 8
cmp eax, 1
jne 0x401f1a
mov dword [esp + 4], str.__mbr_disable_osbr
lea eax, [ebp - 0x218]
add eax, dword [ebp - 0x23c]
mov dword [esp], eax
call sub.msvcrt.dll_strcpy
lea eax, [ebp - 0x218]
add eax, dword [ebp - 0x23c]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov edx, eax
lea eax, [ebp - 0x23c]
add dword [eax], edx
mov dword [esp + 4], 0x7e
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.USER32.dll_IsDlgButtonChecked
sub esp, 8
cmp eax, 1
jne 0x401f6f
mov dword [esp + 4], str.__boot_prevmbr_first
lea eax, [ebp - 0x218]
add eax, dword [ebp - 0x23c]
mov dword [esp], eax
call sub.msvcrt.dll_strcpy
lea eax, [ebp - 0x218]
add eax, dword [ebp - 0x23c]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov edx, eax
lea eax, [ebp - 0x23c]
add dword [eax], edx
mov dword [esp + 4], 0x7f
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.USER32.dll_IsDlgButtonChecked
sub esp, 8
cmp eax, 1
jne 0x401fc4
mov dword [esp + 4], str.__grub2
lea eax, [ebp - 0x218]
add eax, dword [ebp - 0x23c]
mov dword [esp], eax
call sub.msvcrt.dll_strcpy
lea eax, [ebp - 0x218]
add eax, dword [ebp - 0x23c]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov edx, eax
lea eax, [ebp - 0x23c]
add dword [eax], edx
mov dword [esp + 4], pe_nt_image_headers32
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.USER32.dll_IsDlgButtonChecked
sub esp, 8
cmp eax, 1
jne 0x402019
mov dword [esp + 4], str.__floppy
lea eax, [ebp - 0x218]
add eax, dword [ebp - 0x23c]
mov dword [esp], eax
call sub.msvcrt.dll_strcpy
lea eax, [ebp - 0x218]
add eax, dword [ebp - 0x23c]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov edx, eax
lea eax, [ebp - 0x23c]
add dword [eax], edx
mov dword [esp + 0xc], 0x10
lea eax, [ebp - 0x238]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x82
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.USER32.dll_GetDlgItemTextA
sub esp, 0x10
test eax, eax
je 0x402089
lea eax, [ebp - 0x238]
mov dword [esp + 8], eax
mov dword [esp + 4], str.__time_out_s
lea eax, [ebp - 0x218]
add eax, dword [ebp - 0x23c]
mov dword [esp], eax
call sub.msvcrt.dll_sprintf
lea eax, [ebp - 0x218]
add eax, dword [ebp - 0x23c]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov edx, eax
lea eax, [ebp - 0x23c]
add dword [eax], edx
mov dword [esp + 0xc], 0x10
lea eax, [ebp - 0x238]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x84
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.USER32.dll_GetDlgItemTextA
sub esp, 0x10
test eax, eax
je 0x4020f9
lea eax, [ebp - 0x238]
mov dword [esp + 8], eax
mov dword [esp + 4], str.__hot_key_s
lea eax, [ebp - 0x218]
add eax, dword [ebp - 0x23c]
mov dword [esp], eax
call sub.msvcrt.dll_sprintf
lea eax, [ebp - 0x218]
add eax, dword [ebp - 0x23c]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov edx, eax
lea eax, [ebp - 0x23c]
add dword [eax], edx
mov dword [esp + 0xc], 0x10
lea eax, [ebp - 0x238]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x86
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.USER32.dll_GetDlgItemTextA
sub esp, 0x10
test eax, eax
je 0x402169
lea eax, [ebp - 0x238]
mov dword [esp + 8], eax
mov dword [esp + 4], str.__load_seg_s
lea eax, [ebp - 0x218]
add eax, dword [ebp - 0x23c]
mov dword [esp], eax
call sub.msvcrt.dll_sprintf
lea eax, [ebp - 0x218]
add eax, dword [ebp - 0x23c]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov edx, eax
lea eax, [ebp - 0x23c]
add dword [eax], edx
mov dword [esp + 0xc], 0x10
lea eax, [ebp - 0x238]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x88
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.USER32.dll_GetDlgItemTextA
sub esp, 0x10
test eax, eax
je 0x4021d9
lea eax, [ebp - 0x238]
mov dword [esp + 8], eax
mov dword [esp + 4], str.__boot_file_s
lea eax, [ebp - 0x218]
add eax, dword [ebp - 0x23c]
mov dword [esp], eax
call sub.msvcrt.dll_sprintf
lea eax, [ebp - 0x218]
add eax, dword [ebp - 0x23c]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov edx, eax
lea eax, [ebp - 0x23c]
add dword [eax], edx
mov dword [esp + 4], 0x90
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.USER32.dll_IsDlgButtonChecked
sub esp, 8
cmp eax, 1
jne 0x4022d2
mov dword [esp + 4], str.__restore
lea eax, [ebp - 0x218]
add eax, dword [ebp - 0x23c]
mov dword [esp], eax
call sub.msvcrt.dll_strcpy
lea eax, [ebp - 0x218]
add eax, dword [ebp - 0x23c]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov edx, eax
lea eax, [ebp - 0x23c]
add dword [eax], edx
mov eax, 0x200
sub eax, dword [ebp - 0x23c]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x218]
add eax, dword [ebp - 0x23c]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x8e
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.USER32.dll_GetDlgItemTextA
sub esp, 0x10
test eax, eax
jne 0x402283
mov dword [esp + 4], 0x1f5
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.004015f6
jmp 0x4025b3
lea eax, [ebp - 0x218]
add eax, dword [ebp - 0x23c]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov edx, eax
lea eax, [ebp - 0x23c]
add dword [eax], edx
mov eax, dword [ebp - 0x23c]
lea edx, [ebp - 8]
add eax, edx
sub eax, 0x210
mov byte [eax], 0x20
lea eax, [ebp - 0x23c]
inc dword [eax]
lea eax, [ebp - 8]
add eax, dword [ebp - 0x23c]
sub eax, 0x210
mov byte [eax], 0
jmp 0x402409
mov dword [esp + 4], 0x91
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.USER32.dll_IsDlgButtonChecked
sub esp, 8
cmp eax, 1
jne 0x40232c
mov dword [esp + 4], str.__restore_prevmbr
lea eax, [ebp - 0x218]
add eax, dword [ebp - 0x23c]
mov dword [esp], eax
call sub.msvcrt.dll_strcpy
lea eax, [ebp - 0x218]
add eax, dword [ebp - 0x23c]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov edx, eax
lea eax, [ebp - 0x23c]
add dword [eax], edx
jmp 0x402409
mov dword [esp + 4], str.__save
lea eax, [ebp - 0x218]
add eax, dword [ebp - 0x23c]
mov dword [esp], eax
call sub.msvcrt.dll_strcpy
lea eax, [ebp - 0x218]
add eax, dword [ebp - 0x23c]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov dword [ebp - 0x240], eax
mov eax, dword [ebp - 0x23c]
neg eax
sub eax, dword [ebp - 0x240]
add eax, 0x200
mov dword [esp + 0xc], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 0x240]
add eax, dword [ebp - 0x23c]
lea eax, [edx + eax]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x8e
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.USER32.dll_GetDlgItemTextA
sub esp, 0x10
test eax, eax
je 0x4023f8
lea eax, [ebp - 0x218]
add eax, dword [ebp - 0x23c]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov edx, eax
lea eax, [ebp - 0x23c]
add dword [eax], edx
mov eax, dword [ebp - 0x23c]
lea edx, [ebp - 8]
add eax, edx
sub eax, 0x210
mov byte [eax], 0x20
lea eax, [ebp - 0x23c]
inc dword [eax]
lea eax, [ebp - 8]
add eax, dword [ebp - 0x23c]
sub eax, 0x210
mov byte [eax], 0
jmp 0x402409
lea eax, [ebp - 8]
add eax, dword [ebp - 0x23c]
sub eax, 0x210
mov byte [eax], 0
mov dword [esp + 0xc], 0x10
lea eax, [ebp - 0x238]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x6c
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.USER32.dll_GetDlgItemTextA
sub esp, 0x10
test eax, eax
je 0x40249f
cmp byte [ebp - 0x238], 0x2f
jle 0x40249f
cmp byte [ebp - 0x238], 0x39
jg 0x40249f
lea eax, [ebp - 0x238]
mov dword [esp], eax
call sub.msvcrt.dll_atoi
mov dword [ebp - 0x240], eax
mov eax, dword [ebp - 0x240]
mov dword [esp + 8], eax
mov dword [esp + 4], str.__install_partition_d
lea eax, [ebp - 0x218]
add eax, dword [ebp - 0x23c]
mov dword [esp], eax
call sub.msvcrt.dll_sprintf
lea eax, [ebp - 0x218]
add eax, dword [ebp - 0x23c]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov edx, eax
lea eax, [ebp - 0x23c]
add dword [eax], edx
mov eax, 0x200
sub eax, dword [ebp - 0x23c]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x218]
add eax, dword [ebp - 0x23c]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x8a
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.USER32.dll_GetDlgItemTextA
sub esp, 0x10
test eax, eax
je 0x402522
lea eax, [ebp - 0x218]
add eax, dword [ebp - 0x23c]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov edx, eax
lea eax, [ebp - 0x23c]
add dword [eax], edx
mov eax, dword [ebp - 0x23c]
lea edx, [ebp - 8]
add eax, edx
sub eax, 0x210
mov byte [eax], 0x20
lea eax, [ebp - 0x23c]
inc dword [eax]
lea eax, [ebp - 8]
add eax, dword [ebp - 0x23c]
sub eax, 0x210
mov byte [eax], 0
mov eax, 0x200
sub eax, dword [ebp - 0x23c]
mov dword [esp + 8], eax
lea eax, [ebp - 0x218]
add eax, dword [ebp - 0x23c]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00401899
test eax, eax
je 0x402552
jmp 0x4025b3
cmp byte [ebp - 9], 0
je 0x402582
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x40716d
lea eax, [ebp - 0x218]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.USER32.dll_MessageBoxA
sub esp, 0x10
jmp 0x4025b3
mov dword [esp + 4], 5
lea eax, [ebp - 0x218]
mov dword [esp], eax
call sub.KERNEL32.dll_WinExec
sub esp, 8
cmp eax, 0x1f
ja 0x4025b3
mov dword [esp + 4], 0x1f9
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.004015f6
leave
ret