Function at 0x408b80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x4a0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 0x10], 0
xorps xmm0, xmm0
movaps xmmword [esp + 0x70], xmm0
movaps xmmword [esp + 0x60], xmm0
mov dword [esp + 0x84], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x78], 0xffffffff
lea edi, [esp + 0x94]
push 0x408
push 0
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
mov ecx, edi
call fcn.00429920
mov edi, dword [0x5b12f0]
lea esi, [esp + 0x18]
push dword [ebp + 8]
push 0x580c81
push esi
call fcn.00428410
add esp, 0xc
mov eax, dword [edi]
lea edx, [esp + 0x28]
mov ecx, edi
push 0
push edx
push esi
call dword [eax + 0x14]
mov edi, eax
test byte [esp + 0x18], 1
je 0x408c47
push dword [esp + 0x20]
call fcn.00420e70
add esp, 4
mov esi, dword [ebp + 0xc]
mov ebx, str.Cant_determine_partition_type._n
test edi, edi
jne 0x408d62
mov eax, dword [ebp + 0x10]
movzx edx, byte [eax]
test dl, 1
je 0x408c67
mov eax, dword [eax + 4]
jmp 0x408c6b
mov eax, edx
shr eax, 1
mov esi, dword [ebp + 8]
test eax, eax
je 0x408d15
mov edi, esi
movzx ebx, byte [esp + 0x28]
mov ecx, ebx
shr ecx, 1
mov esi, ecx
test bl, 1
je 0x408c8c
mov esi, dword [esp + 0x2c]
cmp esi, eax
mov esi, edi
mov edi, dword [ebp + 0x10]
jne 0x408cbc
test dl, 1
je 0x408f2f
mov edx, dword [edi + 8]
test bl, 1
je 0x408f3b
push eax
push edx
push dword [esp + 0x38]
call sub.api_ms_win_crt_private_l1_1_0.dll_memcmp
add esp, 0xc
test eax, eax
je 0x408d0b
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
test byte [esi], 1
je 0x408ce4
mov ecx, dword [esi + 8]
test byte [esp + 0x28], 1
jne 0x408cee
lea edx, [esp + 0x29]
test byte [edi], 1
jne 0x408cf7
lea ebx, [edi + 1]
jmp 0x408cfa
lea ecx, [esi + 1]
test byte [esp + 0x28], 1
je 0x408cd6
mov edx, dword [esp + 0x30]
test byte [edi], 1
je 0x408cdf
mov ebx, dword [edi + 8]
push ebx
push edx
push ecx
push str.Warning:__s_type_is__s__but__s_was_requested_for_formatting._n
push eax
call fcn.004018d0
add esp, 0x14
lea ecx, [esp + 0x28]
push edi
call fcn.00424390
mov edi, dword [0x5b12f0]
push esi
push 0x580cf0
lea esi, [esp + 0x20]
push esi
call fcn.00428410
add esp, 0xc
mov eax, dword [edi]
lea edx, [esp + 8]
mov ecx, edi
push 0
push edx
push esi
call dword [eax + 0x14]
mov edi, eax
test byte [esp + 0x18], 1
je 0x408d52
push dword [esp + 0x20]
call fcn.00420e70
add esp, 4
mov ebx, str.Unable_to_get_partition_size_n
test edi, edi
mov esi, dword [ebp + 0xc]
je 0x408e9f
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
mov edi, eax
test esi, esi
je 0x409248
push str.Erase_successful__but_not_automatically_formatting._n
push edi
call fcn.004018d0
add esp, 8
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
push 2
call esi
add esp, 4
push ebx
push 0x580e8c
push eax
call fcn.004018d0
add esp, 0xc
push 2
call esi
add esp, 4
mov esi, eax
lea ecx, [esp + 0x18]
push dword [0x5b12f0]
call fcn.00479ca0
test byte [esp + 0x18], 1
je 0x408dc6
mov eax, dword [esp + 0x20]
jmp 0x408dca
lea eax, [esp + 0x19]
push eax
push str.FAILED___s__n
push esi
call fcn.004018d0
add esp, 0xc
test byte [esp + 0x18], 1
je 0x408dec
push dword [esp + 0x20]
call fcn.00420e70
add esp, 4
mov esi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
call esi
mov edi, dword [eax]
call esi
mov dword [eax], edi
lea ecx, [esp + 0x94]
call fcn.00429ef0
call esi
mov esi, dword [eax]
mov eax, dword [esp + 0x78]
cmp eax, 0xffffffff
je 0x408e1c
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll__close
add esp, 4
mov dword [esp + 0x78], 0xffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], esi
mov esi, dword [esp + 0x64]
test esi, esi
je 0x408e71
mov eax, dword [esp + 0x68]
mov ecx, esi
cmp eax, esi
jne 0x408e46
jmp 0x408e64
mov eax, edi
cmp edi, esi
je 0x408e60
lea edi, [eax - 8]
mov ecx, dword [eax - 8]
mov dword [eax - 8], 0
test ecx, ecx
je 0x408e40
push ecx
call dword [eax - 4]
add esp, 4
jmp 0x408e40
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x68], esi
push ecx
call fcn.00420e70
add esp, 4
test byte [esp + 8], 1
je 0x408e84
push dword [esp + 0x10]
call fcn.00420e70
add esp, 4
test byte [esp + 0x28], 1
je 0x408e97
push dword [esp + 0x30]
call fcn.00420e70
add esp, 4
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp + 0x14]
movzx edx, byte [eax]
test dl, 1
je 0x408eaf
mov eax, dword [eax + 4]
jmp 0x408eb3
mov eax, edx
shr eax, 1
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
test eax, eax
je 0x408f8c
mov edi, esi
movzx ebx, byte [esp + 8]
mov ecx, ebx
shr ecx, 1
mov esi, ecx
test bl, 1
je 0x408ed7
mov esi, dword [esp + 0xc]
cmp esi, eax
mov esi, edi
mov edi, dword [ebp + 0x14]
jne 0x408f07
test dl, 1
je 0x409222
mov edx, dword [edi + 8]
test bl, 1
je 0x40922e
push eax
push edx
push dword [esp + 0x18]
call sub.api_ms_win_crt_private_l1_1_0.dll_memcmp
add esp, 0xc
test eax, eax
je 0x408f7f
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
test byte [esi], 1
je 0x408f58
mov ecx, dword [esi + 8]
test byte [esp + 8], 1
jne 0x408f62
lea edx, [esp + 9]
test byte [edi], 1
jne 0x408f6b
lea ebx, [edi + 1]
jmp 0x408f6e
lea edx, [edi + 1]
test bl, 1
jne 0x408caa
xor eax, eax
nop dword [eax]
movzx ebx, byte [esp + eax + 0x29]
cmp bl, byte [edx + eax]
jne 0x408cbc
inc eax
cmp ecx, eax
jne 0x408f40
jmp 0x408d0b
lea ecx, [esi + 1]
test byte [esp + 8], 1
je 0x408f21
mov edx, dword [esp + 0x10]
test byte [edi], 1
je 0x408f2a
mov ebx, dword [edi + 8]
push ebx
push edx
push ecx
push str.Warning:__s_size_is__s__but__s_was_requested_for_formatting._n
push eax
call fcn.004018d0
add esp, 0x14
lea ecx, [esp + 8]
push edi
call fcn.00424390
mov ebx, dword [ebp + 0xc]
lea edi, [esp + 0x88]
mov ecx, edi
lea eax, [esp + 8]
push eax
call fcn.00424040
push edi
lea eax, [esp + 0x1c]
push eax
call fcn.00429780
add esp, 8
test byte [esp + 8], 1
je 0x408fd6
mov eax, dword [esp + 0x10]
mov byte [eax], 0
mov dword [esp + 0xc], 0
test byte [esp + 8], 1
je 0x408fd6
push dword [esp + 0x10]
call fcn.00420e70
add esp, 4
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], eax
movsd xmm0, qword [esp + 0x18]
movsd qword [esp + 8], xmm0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 0
test byte [esp + 0x88], 1
je 0x40901b
push dword [esp + 0x90]
call fcn.00420e70
add esp, 4
lea eax, [esp + 0x28]
push eax
call fcn.0048c720
add esp, 4
test eax, eax
je 0x4091d3
mov edi, eax
mov dword [esp + 0x34], esi
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
test byte [esp + 8], 1
lea ebx, [esp + 9]
mov eax, ebx
je 0x409057
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov edx, 0xffffffff
add edx, 1
adc ecx, 0x7fffffff
lea esi, [esp + 0x40]
push 0x7fffffff
push 0xffffffffffffffff
push ecx
push edx
push esi
push eax
call fcn.00420500
add esp, 0x18
test al, al
je 0x40928a
push 0x20
call fcn.00420cd0
add esp, 4
mov dword [esp + 0x5c], eax
mov dword [esp + 0x54], 0x21
mov dword [esp + 0x58], 0x10
movups xmm0, xmmword [str.erase_block_size]
movups xmmword [eax], xmm0
mov byte [eax + 0x10], 0
lea ecx, [esp + 0x54]
call fcn.00409310
mov dword [esp + 0x38], eax
test byte [esp + 0x54], 1
je 0x4090d2
push dword [esp + 0x5c]
call fcn.00420e70
add esp, 4
push 0x20
call fcn.00420cd0
add esp, 4
mov dword [esp + 0x50], eax
mov dword [esp + 0x48], 0x21
mov dword [esp + 0x4c], 0x12
movups xmm0, xmmword [str.logical_block_size]
movups xmmword [eax], xmm0
mov word [eax + 0x10], 0x657a
mov byte [eax + 0x12], 0
lea ecx, [esp + 0x48]
call fcn.00409310
mov ebx, eax
test byte [esp + 0x48], 1
je 0x409122
push dword [esp + 0x50]
call fcn.00420e70
add esp, 4
lea esi, [esp + 0x98]
push dword [ebp + 0x18]
push ebx
push dword [esp + 0x40]
push dword [esp + 0x50]
push dword [esp + 0x50]
push esi
push edi
call fcn.0048c7a0
add esp, 0x1c
test eax, eax
jne 0x4092a0
push 0
push esi
call sub.api_ms_win_crt_stdio_l1_1_0.dll__open
add esp, 8
mov edi, eax
mov ebx, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
call ebx
mov esi, dword [eax]
call ebx
mov dword [eax], esi
call ebx
mov esi, dword [eax]
cmp edi, 0xffffffff
je 0x4092b1
mov dword [esp + 0x3c], edi
call ebx
mov dword [eax], esi
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x60]
call fcn.00408400
mov byte [esp + 0x38], al
call ebx
mov esi, dword [eax]
mov eax, dword [esp + 0x3c]
cmp eax, 0xffffffff
je 0x4091a2
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll__close
add esp, 4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], esi
cmp byte [esp + 0x38], 0
je 0x4092c5
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.004094a0
movzx eax, al
lea edx, [esp + 0x60]
mov ecx, esi
push eax
call fcn.00404280
jmp 0x408de9
test ebx, ebx
je 0x4092e0
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
push 2
call esi
add esp, 4
push str.Erase_successful__but_not_automatically_formatting._n
push eax
call fcn.004018d0
add esp, 8
push 2
call esi
add esp, 4
test byte [esp + 0x28], 1
je 0x40920a
mov ecx, dword [esp + 0x30]
jmp 0x40920e
lea ecx, [esp + 0x29]
push ecx
push str.File_system_type__s_not_supported._n
push eax
call fcn.004018d0
add esp, 0xc
jmp 0x408dec
lea edx, [edi + 1]
test bl, 1
jne 0x408ef5
xor eax, eax
movzx ebx, byte [esp + eax + 9]
cmp bl, byte [edx + eax]
jne 0x408f07
inc eax
cmp ecx, eax
jne 0x409230
jmp 0x408f7f
lea esi, [esp + 0x18]
mov ecx, esi
push dword [0x5b12f0]
call fcn.00479ca0
test byte [esp + 0x18], 1
je 0x409266
mov eax, dword [esp + 0x20]
jmp 0x40926a
lea eax, [esp + 0x19]
push eax
push str.FAILED___s__n
push edi
call fcn.004018d0
add esp, 0xc
mov ecx, esi
call fcn.00424350
push str.Command_failed
call fcn.004291c0
test byte [esp + 8], 1
je 0x409295
mov ebx, dword [esp + 0x10]
push ebx
push str.Couldnt_parse_partition_size__s.
call fcn.004291c0
mov eax, dword [ebp + 8]
test byte [eax], 1
je 0x4092ed
mov eax, dword [eax + 8]
mov dword [esp + 0x34], eax
jmp 0x4092f1
push esi
call sub.api_ms_win_crt_runtime_l1_1_0.dll_strerror
add esp, 4
push eax
push str.Cannot_open_generated_image:__s
call fcn.004291c0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push dword [eax]
call sub.api_ms_win_crt_runtime_l1_1_0.dll_strerror
add esp, 4
push eax
push str.Cannot_read_image:__s
call fcn.004291c0
test byte [esp + 0x28], 1
je 0x4092ff
mov eax, dword [esp + 0x30]
jmp 0x409303
inc dword [esp + 0x34]
push dword [esp + 0x34]
push str.Cannot_generate_image_for__s
call fcn.004291c0
lea eax, [esp + 0x29]
push eax
push str.Formatting_is_not_supported_for_file_system_with_type__s.
call fcn.004291c0
nop