Function at 0x100039f0
Capabilities:
Get storage device properties
Terminate process

Disassembly:
mov eax, 0x2820
call sub.ntdll.dll__chkstk
mov eax, dword [0x100dd9d4]
xor eax, esp
mov dword [esp + 0x281c], eax
push esi
push edi
xor eax, eax
xor edi, edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
push 0x2800
mov dword [esp + 0x24], eax
lea eax, [esp + 0x28]
push edi
push eax
mov esi, ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
call sub.ntdll.dll_memset
add esp, 0xc
push edi
lea ecx, [esp + 0x10]
push ecx
push 0x2800
lea edx, [esp + 0x30]
push edx
push 0xc
lea eax, [esp + 0x2c]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x10003c13
mov eax, dword [esp + 0xc]
cmp eax, 0x2800
mov esi, dword [esp + 0x30]
push ebp
mov ebp, dword [esp + 0x38]
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], ebp
mov dword [esp + 0xc], edi
jb 0x10003a8b
mov eax, 0x27ff
mov byte [esp + eax + 0x28], 0
mov eax, dword [esp + 0x40]
test eax, eax
je 0x10003aac
cmp eax, 0xffffffff
je 0x10003aac
lea eax, [esp + eax + 0x28]
call fcn.100013c0
mov dword [ebx + 0x120], eax
cmp dword [esp + 0x38], edi
je 0x10003ac5
mov eax, dword [esp + 0x3c]
lea eax, [esp + eax + 0x28]
call fcn.100013c0
mov dword [ebx + 0x124], eax
test esi, esi
jbe 0x10003add
lea eax, [esp + esi + 0x28]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10003ad0
sub eax, edx
mov edi, eax
test ebp, ebp
jbe 0x10003af7
lea eax, [esp + ebp + 0x28]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10003ae8
sub eax, edx
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0xc]
lea eax, [ecx + edi]
test eax, eax
jbe 0x10003c12
lea ebp, [eax + 2]
test ebp, ebp
ja 0x10003b15
push 1
call dword [sym.imp.MSVCR80.dll_exit]
push ebp
call dword [sym.imp.MSVCR80.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
jne 0x10003b2d
push 1
call dword [sym.imp.MSVCR80.dll_exit]
push ebp
push 0
push esi
call sub.ntdll.dll_memset
add esp, 0xc
test edi, edi
mov dword [ebx + 0x11c], esi
mov byte [esi], 0
jbe 0x10003b99
mov edx, dword [esp + 0x18]
mov ecx, dword [ebx + 0x11c]
push edi
lea eax, [esp + edx + 0x2c]
push eax
push ecx
call sub.ntdll.dll_memcpy
mov edx, dword [ebx + 0x11c]
lea eax, [edi - 1]
add esp, 0xc
test eax, eax
mov byte [edi + edx], 0
jl 0x10003b8e
mov ecx, dword [ebx + 0x11c]
cmp byte [ecx + eax], 0x20
jne 0x10003b83
sub eax, 1
jns 0x10003b76
jmp 0x10003b8e
test eax, eax
jl 0x10003b8e
add eax, 1
mov byte [ecx + eax], 0x20
mov ecx, dword [ebx + 0x11c]
mov byte [ecx + eax + 1], 0
mov eax, dword [esp + 0xc]
test eax, eax
jbe 0x10003be6
mov edx, dword [esp + 0x14]
mov ecx, dword [ebx + 0x11c]
push eax
lea eax, [esp + edx + 0x2c]
push eax
push ecx
call dword [sym.imp.ntdll.dll_strncat]
mov ecx, dword [ebx + 0x11c]
mov eax, ecx
add esp, 0xc
lea esi, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x10003bc6
sub eax, esi
add eax, 0xffffffff
js 0x10003be1
cmp byte [ecx + eax], 0x20
jne 0x10003be1
sub eax, 1
jns 0x10003bd6
mov byte [ecx + eax + 1], 0
mov edx, dword [ebx + 0x11c]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10003bf1
sub eax, esi
jne 0x10003c12
push edx
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
mov dword [ebx + 0x11c], 0
pop ebp
mov ecx, dword [esp + 0x2824]
pop edi
pop esi
xor ecx, esp
call fcn.10059076
add esp, 0x2820
ret