Function at 0x450650
Capabilities:
Write file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xe4
movaps xmm0, xmmword [0x4f5720]
movups xmmword [esp + 0x3c], xmm0
movups xmm0, xmmword [0x4f97d0]
movups xmmword [esp + 0x84], xmm0
movups xmm0, xmmword [0x4f97c0]
movups xmmword [esp + 0x74], xmm0
movups xmm0, xmmword [0x4f97b0]
movups xmmword [esp + 0x64], xmm0
movups xmm0, xmmword [0x4f97a0]
movups xmmword [esp + 0x54], xmm0
xor ebp, ebp
mov ebx, dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__ultow]
lea esi, [esp + 0x54]
lea edi, [esp + 0x3c]
nop dword [eax]
push 0xa
lea eax, [esp + 0x7a]
push eax
push ebp
call ebx
add esp, 0xc
mov ecx, esi
mov edx, edi
push dword [esp + 0xf8]
call sym._detectPhysicalDisk.llvm.15169418869827929401
add esp, 4
inc ebp
test al, al
jne 0x4506b0
movups xmm0, xmmword [0x4f9810]
movups xmmword [esp + 0x84], xmm0
movups xmm0, xmmword [0x4f9800]
movups xmmword [esp + 0x74], xmm0
movups xmm0, xmmword [0x4f97f0]
movups xmmword [esp + 0x64], xmm0
movupd xmm0, xmmword [0x4f97e0]
movupd xmmword [esp + 0x54], xmm0
xor esi, esi
lea ebp, [esp + 0x54]
lea edi, [esp + 0x3c]
nop word cs:[eax + eax]
push 0xa
lea eax, [esp + 0x6a]
push eax
push esi
call ebx
add esp, 0xc
mov ecx, ebp
mov edx, edi
push dword [esp + 0xf8]
call sym._detectPhysicalDisk.llvm.15169418869827929401
add esp, 4
inc esi
test al, al
jne 0x450720
push dbg.sortDevices
push dword [esp + 0x44]
push dword [esp + 0x4c]
push dword [esp + 0x48]
call sym._qsort
add esp, 0x10
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov eax, dword [0x5052b0]
mov dword [esp + 0x28], eax
mov dword [esp], 0
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [esp + 0x44]
test eax, eax
jle 0x451249
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x14], ecx
mov ebx, dword [esp + 0xf8]
lea ecx, [ebx + 0x20]
mov dword [esp + 0x38], ecx
xor edx, edx
lea ebp, [esp + 0x54]
jmp 0x4507ea
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x14]
add ecx, 0x50
mov edi, dword [esp + 0x3c]
mov eax, dword [esp + 0x44]
mov dword [esp + 0x14], ecx
sub ecx, edi
sar ecx, 4
imul ecx, ecx, 0xcccccccd
cmp ecx, eax
jge 0x451143
inc edx
cmp eax, 1
mov eax, edx
mov ecx, 0
cmove eax, ecx
mov dword [esp + 0x50], eax
mov esi, dword [esp + 0xf8]
cmp dword [esi + 0x24], 0
mov dword [esp + 0x4c], edx
je 0x450820
cmp dword [esp + 0x20], 0
je 0x450860
mov eax, dword [esp + 0x28]
mov byte [eax], 0
jmp 0x450869
mov edx, dword [esp + 0x14]
lea eax, [edx + 8]
lea ecx, [edx + 0x2c]
cmp dword [edx + 4], 0
cmove eax, ecx
push dword [eax]
push str.Physical_Disk___s_
lea eax, [esp + 0x28]
push eax
call dbg.ffStrbufSetF
add esp, 0xc
cmp dword [esp], 0
jne 0x4508ba
mov eax, dword [0x5052b0]
mov dword [esp + 8], eax
jmp 0x4508c1
mov eax, dword [0x5052b0]
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x54], 1
lea eax, [esp + 0x50]
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], 7
mov eax, dword [esp + 0x14]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], 7
add eax, 0x24
mov dword [esp + 0x68], eax
push ebp
push 3
push dword [esp + 0x40]
lea eax, [esp + 0x2c]
push eax
call dbg.ffParseFormatString
add esp, 0x10
cmp dword [esp], 0
je 0x45084b
mov eax, dword [esp + 8]
mov byte [eax], 0
mov eax, esp
mov dword [esp + 4], 0
push eax
mov edi, dword [esp + 0x18]
push dword [edi + 0x44]
push dword [edi + 0x40]
call dbg.ffParseSize
add esp, 0xc
mov edx, dword [edi + 0x3c]
test dl, 2
mov ebx, 0x4f5744
mov eax, 0x4f5748
cmove ebx, eax
test dl, 1
mov ecx, 0x4f5740
cmovne ebx, ecx
test dl, 4
mov edi, str.Fixed
cmove edi, eax
test dl, 8
mov ecx, str.Removable
cmovne edi, ecx
test dl, 0x20
mov ebp, str.Read_only
cmove ebp, eax
cmp dword [esi + 0x3c], 0
je 0x450ab0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov eax, dword [0x5052b0]
mov dword [esp + 0x5c], eax
mov ecx, dword [esp + 0x14]
movsd xmm0, qword [ecx + 0x48]
movzx eax, word [esi + 0x55]
mov word [esp + 0x50], ax
sub esp, 0x10
mov word [esp + 0xc], ax
mov esi, ecx
mov dword [esp + 0x2c], ebp
lea ebp, [esp + 0x64]
mov dword [esp + 8], ebp
movsd qword [esp], xmm0
call dbg.ffTempsAppendNum
add esp, 0x10
test byte [esi + 0x3c], 0x10
mov eax, str.Read_write
mov ecx, dword [esp + 0x1c]
cmovne ecx, eax
mov dword [esp + 0x1c], ecx
mov ebp, esp
push ebp
push dword [esi + 0x44]
push dword [esi + 0x40]
call dbg.ffParseSize
add esp, 0xc
mov dword [esp + 0x94], 7
mov dword [esp + 0x98], ebp
mov dword [esp + 0x9c], 7
mov dword [esp + 0xa0], esi
mov dword [esp + 0xa4], 7
lea eax, [esi + 0xc]
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], 6
mov dword [esp + 0xb0], ebx
mov dword [esp + 0xb4], 7
lea eax, [esi + 0x24]
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], 7
lea eax, [esi + 0x18]
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], 6
mov dword [esp + 0xc8], edi
lea ebp, [esp + 0x54]
mov dword [esp + 0xcc], 6
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xd0], eax
mov dword [esp + 0xd4], 7
lea eax, [esi + 0x30]
mov dword [esp + 0xd8], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0xdc], 9
mov dword [esp + 0xe0], ebp
lea ecx, [esp + 0x94]
push ecx
push 0xa
push 1
push dword [esp + 0x44]
push 0
push eax
call dbg.ffPrintFormat
add esp, 0x18
cmp dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
je 0x4507c0
mov dword [esp + 0x54], 0
push dword [esp + 0x5c]
call sym._free
add esp, 4
jmp 0x4507c0
mov dword [esp + 0x18], edx
push 0
push dword [esp + 0x3c]
push 0
push dword [esp + 0x34]
call dbg.ffPrintLogoAndKey
add esp, 0x10
movzx edx, byte [ebx]
movzx ecx, byte [edi]
movzx eax, byte [ebp]
test dl, dl
jne 0x450ae2
test cl, cl
jne 0x450ae2
test al, al
je 0x451020
mov byte [esp + 0x30], dl
mov byte [esp + 0x10], cl
mov byte [esp + 0xf], al
mov eax, dword [esp]
mov edx, dword [esp + 4]
test eax, eax
mov dword [esp + 0x34], edi
je 0x450b08
mov ecx, edx
not ecx
add ecx, eax
cmp ecx, 2
jae 0x450b43
mov edi, ebx
cmp eax, 2
mov ecx, eax
mov ebx, edx
mov edx, 0x20
cmovb ecx, edx
mov esi, ebx
lea edx, [ebx + 3]
nop
mov ebx, ecx
add ecx, ecx
cmp edx, ebx
ja 0x450b20
test eax, eax
je 0x450b49
push ebx
push dword [esp + 0xc]
call sym._realloc
add esp, 8
mov dword [esp + 8], eax
mov edx, dword [esp + 4]
jmp 0x450b7c
mov eax, dword [esp + 8]
jmp 0x450b81
push ebx
call sym._malloc
add esp, 4
mov edx, esi
test esi, esi
je 0x450b75
lea ecx, [edx + 1]
push ecx
push dword [esp + 0xc]
push eax
mov dword [esp + 0x38], eax
call sym._memcpy
mov eax, dword [esp + 0x38]
mov edx, esi
add esp, 0xc
jmp 0x450b78
mov byte [eax], 0
mov dword [esp + 8], eax
mov dword [esp], ebx
mov ebx, edi
mov word [eax + edx], 0x5b20
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
lea edx, [eax + 2]
mov dword [esp + 4], edx
mov byte [ecx + eax + 2], 0
cmp byte [esp + 0x30], 0
mov dword [esp + 0x1c], ebp
je 0x450c74
push ebx
call sym._strlen
add esp, 4
test eax, eax
je 0x450c74
mov esi, eax
mov eax, dword [esp]
mov edx, dword [esp + 4]
test eax, eax
je 0x450bd2
mov ecx, edx
not ecx
add ecx, eax
cmp ecx, esi
jae 0x450c13
mov dword [esp + 0x30], ebx
cmp eax, 2
mov ecx, eax
mov ebx, edx
mov edx, 0x20
cmovb ecx, edx
mov dword [esp + 0x2c], esi
mov ebp, ebx
lea edx, [esi + ebx]
inc edx
nop
mov ebx, ecx
add ecx, ecx
cmp edx, ebx
ja 0x450bf0
test eax, eax
je 0x450c19
push ebx
push dword [esp + 0xc]
call sym._realloc
add esp, 8
mov dword [esp + 8], eax
mov edx, dword [esp + 4]
jmp 0x450c4c
mov eax, dword [esp + 8]
jmp 0x450c57
push ebx
call sym._malloc
add esp, 4
mov edx, ebp
test ebp, ebp
je 0x450c45
lea ecx, [edx + 1]
push ecx
push dword [esp + 0xc]
push eax
mov esi, eax
call sym._memcpy
mov eax, esi
mov edx, ebp
add esp, 0xc
mov dword [esp + 8], esi
jmp 0x450c4c
mov byte [eax], 0
mov dword [esp + 8], eax
mov dword [esp], ebx
mov ebx, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
add edx, eax
push esi
push ebx
push edx
call sym._memcpy
add esp, 0xc
add esi, dword [esp + 4]
mov dword [esp + 4], esi
mov eax, dword [esp + 8]
mov byte [eax + esi], 0
mov edi, dword [esp + 4]
cmp byte [esp + 0x10], 0
je 0x450e0d
mov esi, dword [esp + 8]
cmp byte [edi + esi - 1], 0x5b
je 0x450d35
mov eax, dword [esp]
test eax, eax
je 0x450ca4
mov ecx, edi
not ecx
add ecx, eax
cmp ecx, 1
ja 0x450d17
cmp eax, 2
mov ecx, eax
mov edx, 0x20
cmovb ecx, edx
mov dword [esp + 0x10], edi
lea edx, [edi + 3]
nop dword [eax + eax]
mov ebx, ecx
add ecx, ecx
cmp edx, ebx
ja 0x450cc0
test eax, eax
je 0x450ce6
push ebx
push esi
call sym._realloc
add esp, 8
mov edi, eax
mov dword [esp + 8], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x10], eax
jmp 0x450d0e
push ebx
call sym._malloc
add esp, 4
mov edi, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x450d07
inc eax
push eax
push esi
push edi
call sym._memcpy
add esp, 0xc
jmp 0x450d0a
mov byte [edi], 0
mov dword [esp + 8], edi
mov dword [esp], ebx
mov esi, edi
mov edi, dword [esp + 0x10]
mov word [esi + edi], 0x202c
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
lea edx, [eax + 2]
mov dword [esp + 4], edx
mov byte [ecx + eax + 2], 0
mov edi, dword [esp + 4]
mov eax, dword [esp + 0x34]
push eax
call sym._strlen
add esp, 4
test eax, eax
je 0x450e0d
mov esi, eax
mov eax, dword [esp]
test eax, eax
je 0x450d5d
mov ecx, edi
not ecx
add ecx, eax
cmp ecx, esi
jae 0x450da9
cmp eax, 2
mov ecx, eax
mov edx, 0x20
cmovb ecx, edx
mov dword [esp + 0x10], edi
lea edx, [esi + edi]
inc edx
nop word cs:[eax + eax]
mov ebx, ecx
add ecx, ecx
cmp edx, ebx
ja 0x450d80
test eax, eax
je 0x450daf
push ebx
push dword [esp + 0xc]
call sym._realloc
add esp, 8
mov ecx, eax
mov dword [esp + 8], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x10], eax
jmp 0x450de2
mov ecx, dword [esp + 8]
jmp 0x450de9
push ebx
call sym._malloc
add esp, 4
mov ecx, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x450ddb
inc eax
push eax
push dword [esp + 0xc]
push ecx
mov edi, ecx
call sym._memcpy
mov ecx, edi
add esp, 0xc
mov dword [esp + 8], edi
jmp 0x450de2
mov byte [ecx], 0
mov dword [esp + 8], ecx
mov dword [esp], ebx
mov edi, dword [esp + 0x10]
add edi, ecx
push esi
push dword [esp + 0x38]
push edi
call sym._memcpy
add esp, 0xc
add esi, dword [esp + 4]
mov dword [esp + 4], esi
mov eax, dword [esp + 8]
mov byte [eax + esi], 0
mov edi, dword [esp + 4]
mov edx, dword [esp + 0x18]
movzx eax, byte [esp + 0xf]
test al, al
je 0x450f88
mov eax, edi
mov ebp, dword [esp + 8]
cmp byte [edi + ebp - 1], 0x5b
jne 0x450e3d
mov esi, dword [esp + 0x1c]
test dl, 0x20
jne 0x450edd
jmp 0x450f88
mov eax, dword [esp]
test eax, eax
je 0x450e4f
mov ecx, edi
not ecx
add ecx, eax
cmp ecx, 1
ja 0x450ead
cmp eax, 2
mov ecx, eax
mov edx, 0x20
cmovb ecx, edx
lea edx, [edi + 3]
nop
mov ebx, ecx
add ecx, ecx
cmp edx, ebx
ja 0x450e60
test eax, eax
je 0x450e82
push ebx
push ebp
call sym._realloc
add esp, 8
mov esi, eax
mov dword [esp + 8], eax
mov edi, dword [esp + 4]
jmp 0x450ea8
push ebx
call sym._malloc
add esp, 4
mov esi, eax
test edi, edi
je 0x450ea1
lea eax, [edi + 1]
push eax
push ebp
push esi
call sym._memcpy
add esp, 0xc
jmp 0x450ea4
mov byte [esi], 0
mov dword [esp + 8], esi
mov dword [esp], ebx
mov ebp, esi
mov word [ebp + edi], 0x202c
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
lea edx, [eax + 2]
mov dword [esp + 4], edx
mov byte [ecx + eax + 2], 0
mov edi, dword [esp + 4]
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
test dl, 0x20
je 0x450f88
mov eax, dword [esp]
test eax, eax
je 0x450eef
mov ecx, edi
not ecx
add ecx, eax
cmp ecx, 9
jae 0x450f25
cmp eax, 2
mov ecx, eax
mov edx, 0x20
cmovb ecx, edx
lea edx, [edi + 0xa]
nop
mov ebx, ecx
add ecx, ecx
cmp edx, ebx
ja 0x450f00
test eax, eax
je 0x450f2b
push ebx
push dword [esp + 0xc]
call sym._realloc
add esp, 8
mov ebp, eax
mov dword [esp + 8], eax
mov edi, dword [esp + 4]
jmp 0x450f55
mov ebp, dword [esp + 8]
jmp 0x450f5c
push ebx
call sym._malloc
add esp, 4
mov ebp, eax
test edi, edi
je 0x450f4d
lea eax, [edi + 1]
push eax
push dword [esp + 0xc]
push ebp
call sym._memcpy
add esp, 0xc
jmp 0x450f51
mov byte [ebp], 0
mov dword [esp + 8], ebp
mov edx, dword [esp + 0x18]
mov dword [esp], ebx
add edi, ebp
shl edx, 0x1a
sar edx, 0x1f
and edx, 9
push edx
push esi
push edi
mov edi, edx
call sym._memcpy
add esp, 0xc
add edi, dword [esp + 4]
mov dword [esp + 4], edi
mov eax, dword [esp + 8]
mov byte [eax + edi], 0
mov edi, dword [esp + 4]
mov eax, dword [esp]
test eax, eax
je 0x450f96
lea ecx, [edi + 1]
cmp eax, ecx
jne 0x450fd5
cmp eax, 2
mov ecx, eax
mov edx, 0x20
cmovb ecx, edx
lea edx, [edi + 2]
nop word cs:[eax + eax]
mov ebx, ecx
add ecx, ecx
cmp edx, ebx
ja 0x450fb0
test eax, eax
je 0x450fdb
push ebx
push dword [esp + 0xc]
call sym._realloc
add esp, 8
mov ebp, eax
mov dword [esp + 8], eax
mov edi, dword [esp + 4]
jmp 0x451005
mov ebp, dword [esp + 8]
jmp 0x45100b
push ebx
call sym._malloc
add esp, 4
mov ebp, eax
test edi, edi
je 0x450ffd
lea eax, [edi + 1]
push eax
push dword [esp + 0xc]
push ebp
call sym._memcpy
add esp, 0xc
jmp 0x451001
mov byte [ebp], 0
mov dword [esp + 8], ebp
mov dword [esp], ebx
lea ecx, [edi + 1]
mov dword [esp + 4], ecx
mov byte [ebp + edi], 0x5d
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov byte [ecx + eax], 0
mov eax, dword [esp + 0x14]
movsd xmm0, qword [eax + 0x48]
ucomisd xmm0, xmm0
lea ebp, [esp + 0x54]
jp 0x451113
mov ebx, dword [esp + 4]
test ebx, ebx
je 0x4510e6
mov eax, dword [esp]
test eax, eax
je 0x451055
mov ecx, ebx
not ecx
add ecx, eax
cmp ecx, 3
jae 0x451091
cmp eax, 2
mov ecx, eax
mov edx, 0x20
cmovb ecx, edx
lea edx, [ebx + 4]
nop word cs:[eax + eax]
mov ebp, ecx
add ecx, ecx
cmp edx, ebp
ja 0x451070
test eax, eax
je 0x451097
push ebp
push dword [esp + 0xc]
call sym._realloc
add esp, 8
mov edi, eax
mov ebx, dword [esp + 4]
jmp 0x4510b3
mov edi, dword [esp + 8]
jmp 0x4510be
push ebp
call sym._malloc
add esp, 4
mov edi, eax
lea eax, [ebx + 1]
push eax
push dword [esp + 0xc]
push edi
call sym._memcpy
add esp, 0xc
mov dword [esp + 8], edi
mov dword [esp], ebp
lea ebp, [esp + 0x54]
mov byte [edi + ebx + 2], 0x20
mov word [edi + ebx], 0x2d20
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
lea edx, [eax + 3]
mov dword [esp + 4], edx
mov byte [ecx + eax + 3], 0
mov eax, dword [esp + 0x14]
movsd xmm0, qword [eax + 0x48]
mov ebx, dword [esp + 0xf8]
movzx eax, word [ebx + 0x55]
mov word [esp + 0x54], ax
sub esp, 0x10
mov word [esp + 0xc], ax
lea eax, [esp + 0x10]
mov dword [esp + 8], eax
movsd qword [esp], xmm0
call dbg.ffTempsAppendNum
add esp, 0x10
push 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
mov edi, eax
push eax
push dword [esp + 8]
push 1
push dword [esp + 0x14]
call sym._fwrite
add esp, 0x10
push edi
push 0xa
call sym._fputc
add esp, 8
jmp 0x4507c0
test eax, eax
jle 0x451249
lea esi, [edi + 0x50]
add edi, 0x38
jmp 0x451181
mov dword [edi], eax
mov eax, esi
sub eax, dword [esp + 0x3c]
sar eax, 4
imul eax, eax, 0xcccccccd
add esi, 0x50
add edi, 0x50
cmp eax, dword [esp + 0x44]
jge 0x451249
cmp dword [edi - 0x38], 0
mov dword [edi - 0x34], 0
je 0x4511a0
mov dword [edi - 0x38], 0
push dword [edi - 0x30]
call sym._free
add esp, 4
mov eax, dword [0x5052b0]
mov dword [edi - 0x30], eax
cmp dword [edi - 0x2c], 0
mov dword [edi - 0x28], 0
je 0x4511cc
mov dword [edi - 0x2c], 0
push dword [edi - 0x24]
call sym._free
add esp, 4
mov eax, dword [0x5052b0]
mov dword [edi - 0x24], eax
cmp dword [edi - 0x14], 0
mov dword [edi - 0x10], 0
je 0x4511f3
mov dword [edi - 0x14], 0
push dword [edi - 0xc]
call sym._free
add esp, 4
mov eax, dword [0x5052b0]
mov dword [edi - 0xc], eax
cmp dword [edi - 0x20], 0
mov dword [edi - 0x1c], 0
je 0x45121a
mov dword [edi - 0x20], 0
push dword [edi - 0x18]
call sym._free
add esp, 4
mov eax, dword [0x5052b0]
mov dword [edi - 0x18], eax
cmp dword [edi - 8], 0
mov dword [edi - 4], 0
je 0x451160
mov dword [edi - 8], 0
push dword [edi]
call sym._free
add esp, 4
mov eax, dword [0x5052b0]
jmp 0x451160
cmp dword [esp], 0
mov dword [esp + 4], 0
je 0x45126a
mov dword [esp], 0
push dword [esp + 8]
call sym._free
add esp, 4
cmp dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
je 0x45128d
mov dword [esp + 0x20], 0
push dword [esp + 0x28]
call sym._free
add esp, 4
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4512ae
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
push eax
call sym._free
add esp, 4
add esp, 0xe4
pop esi
pop edi
pop ebx
pop ebp
ret