Function at 0x12dbb0a0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [0x13198f68]
sub esp, 0x22c
push ebx
push ebp
xor ebp, ebp
push esi
cmp eax, ebp
je 0x12dbb0c8
push str.SetVolumeID_1_
push str.UDisk
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0xc
mov esi, dword [esp + 0x23c]
cmp esi, ebp
je 0x12dbb462
xor ebx, ebx
mov bx, word [esi]
sub ebx, 0x41
push ebx
call fcn.12e32cd0
add esp, 4
cmp eax, 4
je 0x12dbb446
cmp eax, 5
je 0x12dbb446
mov eax, dword [0x130d51a4]
mov ecx, dword [0x130d51a8]
mov edx, dword [0x130d51ac]
mov dword [esp + 0x24], eax
mov ax, word [0x130d51b0]
mov dword [esp + 0x28], ecx
mov word [esp + 0x30], ax
mov eax, dword [0x13198f68]
xor ecx, ecx
mov dword [esp + 0x2c], edx
mov dx, word [esi]
mov dword [esp + 0x32], ecx
cmp eax, ebp
mov dword [esp + 0xc], ebp
mov word [esp + 0x36], cx
mov word [esp + 0x2c], dx
je 0x12dbb156
push str.SetVolumeID_2_
push str.UDisk
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0xc
push ebp
push 0x80
push 3
push ebp
push 7
lea eax, [esp + 0x38]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov eax, dword [0x13198f68]
cmp eax, ebp
mov dword [esp + 0x1c], esi
je 0x12dbb194
push str.SetVolumeID_3_
push str.UDisk
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0xc
cmp esi, 0xffffffff
je 0x12dbb43a
cmp dword [0x13198f68], ebp
je 0x12dbb1b9
push str.SetVolumeID_4_
push str.UDisk
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0xc
push edi
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x3d]
mov byte [esp + 0x3c], 0
lea edx, [esp + 0x1c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x14]
stosb byte es:[edi], al
push ecx
xor edi, edi
push edx
push esi
mov dword [esp + 0x28], edi
mov dword [esp + 0x20], edi
call fcn.12e333a0
mov ebp, eax
add esp, 0xc
cmp ebp, edi
je 0x12dbb3fd
cmp dword [esp + 0x14], 0x200
jb 0x12dbb3fd
cmp dword [0x13198f68], edi
je 0x12dbb220
push str.GetVolumeID_5
push str.UDisk
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0xc
mov eax, dword [esp + 0x1c]
mov ecx, 0x80
mov esi, eax
lea edi, [esp + 0x3c]
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.12f5bf80
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x40]
push eax
push 0x200
xor esi, esi
push ecx
push ebx
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], esi
call fcn.12e32b10
add esp, 0x14
cmp eax, esi
je 0x12dbb419
cmp eax, 3
jne 0x12dbb335
mov eax, dword [esp + 0x63]
mov ecx, dword [esp + 0x18]
cmp ecx, eax
mov dword [esp + 0x10], eax
je 0x12dbb27e
xor ebp, ebp
jmp 0x12dbb289
mov edx, dword [esp + 0x244]
mov dword [esp + 0x63], edx
mov eax, dword [0x13198f68]
test eax, eax
je 0x12dbb2a6
push str.SetVolumeID_6_1
push str.UDisk
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0xc
test ebp, ebp
je 0x12dbb419
mov eax, dword [0x13198f68]
test eax, eax
je 0x12dbb2cb
push str.SetVolumeID_10
push str.UDisk
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0xc
mov esi, dword [esp + 0x20]
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
jne 0x12dbb3f9
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], eax
push eax
push ecx
lea eax, [esp + 0x44]
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x13198f68]
test ecx, ecx
je 0x12dbb419
mov ecx, dword [esp + 0x14]
push eax
push ecx
push ebp
push str.SetVolumeID_11___u____lu____lu_
push str.UDisk
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0x18
jmp 0x12dbb419
cmp eax, 2
jne 0x12dbb370
mov eax, dword [esp + 0x7f]
mov ecx, dword [esp + 0x18]
cmp ecx, eax
mov dword [esp + 0x10], eax
je 0x12dbb34e
xor ebp, ebp
jmp 0x12dbb359
mov eax, dword [esp + 0x244]
mov dword [esp + 0x7f], eax
mov eax, dword [0x13198f68]
test eax, eax
je 0x12dbb2a6
push str.SetVolumeID_6_2
jmp 0x12dbb297
cmp eax, 5
jne 0x12dbb3a1
mov eax, dword [0x13198f68]
test eax, eax
je 0x12dbb392
push str.SetVolumeID_7
push str.UDisk
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0xc
mov ecx, dword [esp + 0xa0]
xor ebp, ebp
mov dword [esp + 0x10], ecx
jmp 0x12dbb419
cmp eax, 1
mov eax, dword [0x13198f68]
jne 0x12dbb3e1
test eax, eax
je 0x12dbb3c3
push str.SetVolumeID_8
push str.UDisk
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0xc
mov edx, dword [esp + 0x84]
mov eax, dword [esp + 0x244]
mov dword [esp + 0x10], edx
mov dword [esp + 0x84], eax
jmp 0x12dbb2a6
test eax, eax
je 0x12dbb3f9
push str.SetVolumeID_9
push str.UDisk
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0xc
xor ebp, ebp
jmp 0x12dbb419
cmp dword [0x13198f68], edi
je 0x12dbb419
push str.GetVolumeID_5_1
push str.UDisk
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0xc
mov edx, dword [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
pop edi
je 0x12dbb43a
mov eax, dword [esp + 0x244]
test eax, eax
je 0x12dbb43a
mov ecx, dword [esp + 0xc]
mov dword [eax], ecx
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x22c
ret
cmp dword [0x13198f68], ebp
je 0x12dbb462
push str.SetVolumeID_1_1
push str.UDiskIDDLL
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0xc
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x22c
ret