Function at 0x4071a0
Capabilities:
Contain obfuscated stackstrings
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x70
test byte [0x417240], 8
jne 0x407758
call sym._open_mountmgr
mov dword [ebp - 0x50], eax
cmp eax, 0xffffffff
je 0x4076af
mov dword [ebp - 0x4c], 0
mov esi, 0x4283a0
jmp 0x40731a
mov eax, dword [esi + 4]
mov ebx, dword [sym.imp.ucrtbase.dll_strlen]
mov dword [ebp - 0x54], eax
mov dword [esp], eax
call ebx
mov edi, eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x58], eax
test eax, eax
je 0x4075b0
mov dword [esp], eax
call ebx
lea edi, [edi + eax + 0x22]
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_malloc]
mov ebx, eax
test eax, eax
je 0x407307
mov dword [eax], edi
movzx eax, word [ebp - 0x4c]
xor ecx, ecx
lea edx, [ebx + 0x20]
mov word [ebx + 0x1c], cx
add eax, 0x61
mov word [ebx + 0x18], ax
mov eax, dword [esi + 0x14]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x54]
mov dword [esp], edx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.ucrtbase.dll_strcpy]
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x5c], eax
call eax
mov eax, 0x20
mov edx, dword [ebp - 0x54]
mov word [ebx + 0x1a], ax
mov ecx, dword [edx]
add edx, 4
lea eax, [ecx - 0x1010101]
not ecx
and eax, ecx
and eax, 0x80808080
je 0x40725c
mov ecx, eax
shr ecx, 0x10
test eax, 0x8080
cmove eax, ecx
lea ecx, [edx + 2]
cmove edx, ecx
mov ecx, eax
add cl, al
mov eax, dword [ebp - 0x58]
sbb edx, 3
add edx, 1
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x5c]
mov dword [esp], edx
mov dword [ebp - 0x54], edx
call eax
mov edx, dword [ebp - 0x54]
sub edx, ebx
mov word [ebx + 0x1c], dx
mov eax, dword [ebp - 0x50]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x6dc080
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_DeviceIoControl]
sub esp, 0x20
test eax, eax
jne 0x407370
test byte [0x417240], 4
jne 0x407430
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_free]
add dword [ebp - 0x4c], 1
mov eax, dword [ebp - 0x4c]
add esi, 0x20
cmp eax, 0x1a
je 0x4076a0
mov ebx, dword [esi + 0x1c]
test ebx, ebx
je 0x407307
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x1c], 0
test ecx, ecx
jne 0x4071e0
mov dword [esp], 0x20
call dword [sym.imp.ucrtbase.dll_malloc]
mov ebx, eax
test eax, eax
je 0x407307
movzx eax, word [ebp - 0x4c]
mov dword [ebx], 0x20
mov edi, 0x20
mov dword [ebx + 4], 1
add eax, 0x61
mov dword [ebx + 0x1a], 0
mov word [ebx + 0x18], ax
jmp 0x4072aa
mov edx, dword [esi + 0xc]
movsx ax, byte [esi]
lea edi, [ebp - 0x32]
mov dword [ebp - 0x32], 0x3a0061
mov dword [ebp - 0x2e], 0x5c
test edx, edx
mov word [ebp - 0x32], ax
mov eax, 0x41a5cc
cmove edx, eax
mov dword [esp], edi
mov dword [esp + 4], edx
mov dword [ebp - 0x54], edx
call dword [sym.imp.kernel32.dll_SetVolumeLabelW]
mov edx, dword [ebp - 0x54]
sub esp, 8
test eax, eax
jne 0x407490
test byte [0x417240], 4
jne 0x407710
call sym._PRINTERROR
movzx eax, byte [0x417240]
and eax, 8
mov edx, dword [esi + 0x18]
test edx, edx
jne 0x407600
test al, al
je 0x4072fe
mov eax, dword [esi + 4]
mov edi, dword [esi + 0x14]
call sym._wine_dbgstr_an.constprop.0
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x4c]
mov dword [esp + 0xc], str.set_drive__c:_to__s_type__lu_n
add eax, 0x61
mov dword [esp + 8], str.apply_drive_changes
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x417240
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x4072fe
mov eax, dword fs:[0x18]
mov edx, dword [eax + 0x34]
mov eax, dword [esi + 4]
mov edi, dword [esi + 0x14]
mov dword [ebp - 0x54], edx
call sym._wine_dbgstr_an.constprop.0
mov edx, dword [ebp - 0x54]
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x4c]
mov dword [esp + 0x1c], edx
add eax, 0x61
mov dword [esp + 0xc], str.failed_to_set_drive__c:_to__s_type__lu_err__lu_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.apply_drive_changes
mov dword [esp + 4], 0x417240
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_2
jmp 0x4072fe
test byte [0x417240], 8
jne 0x4076c0
mov eax, dword [esi + 0x18]
test eax, eax
je 0x4072fe
mov eax, dword [esi + 0x10]
xor edx, edx
mov dword [ebp - 0x32], 0x3a0061
mov dword [ebp - 0x2e], 0x2e005c
mov dword [ebp - 0x54], eax
movsx ax, byte [esi]
mov dword [ebp - 0x2a], 0x690077
mov dword [ebp - 0x26], 0x64006e
mov dword [ebp - 0x22], 0x77006f
mov dword [ebp - 0x1e], 0x2d0073
mov dword [ebp - 0x1a], 0x650073
mov dword [ebp - 0x16], 0x690072
mov dword [ebp - 0x12], 0x6c0061
mov word [ebp - 0xe], dx
mov word [ebp - 0x32], ax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x40000000
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_CreateFileW]
sub esp, 0x1c
cmp eax, 0xffffffff
mov dword [ebp - 0x58], eax
je 0x40759a
mov eax, dword [ebp - 0x54]
lea edi, [ebp - 0x42]
mov dword [esp + 4], str._lX_n
mov dword [esp], edi
mov dword [esp + 8], eax
call sym._sprintf.constprop.0
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ecx, dword [ebp - 0x58]
lea edx, [ebp - 0x48]
mov dword [esp + 4], edi
mov dword [esp + 0xc], edx
mov dword [esp], ecx
mov dword [ebp - 0x54], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 8], eax
call dword [sym.imp.kernel32.dll_WriteFile]
mov ecx, dword [ebp - 0x54]
sub esp, 0x14
mov dword [esp], ecx
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
movzx eax, byte [0x417240]
and eax, 8
jmp 0x4073db
add edi, 0x21
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_malloc]
mov ebx, eax
test eax, eax
je 0x407307
mov dword [eax], edi
movzx eax, word [ebp - 0x4c]
add eax, 0x61
mov word [ebx + 0x18], ax
xor eax, eax
mov word [ebx + 0x1c], ax
mov eax, dword [esi + 0x14]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x54]
mov dword [esp + 4], eax
lea eax, [ebx + 0x20]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_strcpy]
mov edx, 0x20
mov word [ebx + 0x1a], dx
jmp 0x4072aa
mov ecx, dword [esi + 0x10]
movsx dx, byte [esi]
mov dword [ebp - 0x32], 0x3a0061
mov dword [ebp - 0x2e], 0x2e005c
mov dword [ebp - 0x54], ecx
xor ecx, ecx
mov dword [ebp - 0x2a], 0x690077
mov dword [ebp - 0x26], 0x64006e
mov dword [ebp - 0x22], 0x77006f
mov dword [ebp - 0x1e], 0x2d0073
mov dword [ebp - 0x1a], 0x650073
mov dword [ebp - 0x16], 0x690072
mov dword [ebp - 0x12], 0x6c0061
mov word [ebp - 0xe], cx
mov word [ebp - 0x32], dx
test al, al
je 0x4074fb
mov eax, edi
call sym._wine_dbgstr_wn.constprop.0_1
mov ecx, dword [ebp - 0x54]
mov dword [esp + 0xc], str.Putting_serial_number_of__08lX_into_file__s_n
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 8], str.set_drive_serial
mov dword [esp + 4], 0x417240
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x4074fb
mov eax, dword [ebp - 0x50]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, edx
call sym._wine_dbgstr_wn.constprop.0_1
mov dword [ebp - 0x54], eax
mov eax, edi
call sym._wine_dbgstr_wn.constprop.0_1
mov edx, dword [ebp - 0x54]
mov dword [esp + 0xc], str.__set_volume_label_for_devicename_of__s__label_of__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov dword [esp + 8], str.set_drive_label
mov dword [esp + 4], 0x417240
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
movzx eax, byte [0x417240]
and eax, 8
jmp 0x4073d0
mov eax, edx
call sym._wine_dbgstr_wn.constprop.0_1
mov dword [ebp - 0x54], eax
mov eax, edi
call sym._wine_dbgstr_wn.constprop.0_1
mov edx, dword [ebp - 0x54]
mov dword [esp + 0xc], str.unable_to_set_volume_label_for_devicename_of__s__label_of__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov dword [esp + 8], str.set_drive_label
mov dword [esp + 4], 0x417240
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_2
jmp 0x4073c1
mov dword [esp + 0xc], 0x41a396
mov dword [esp + 8], str.apply_drive_changes
mov dword [esp + 4], 0x417240
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x4071b6