Function at 0x4252e0
Capabilities:
Check mutex on windows
Get disk information

Disassembly:
mov eax, dword [0x642544]
sub esp, 0x54
push ebx
xor ebx, ebx
push ebp
push esi
cmp eax, ebx
push edi
jne 0x425320
push str.JMUSBAcess
push ebx
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
cmp eax, ebx
mov dword [0x642544], eax
jne 0x425329
push str.JMUSBAcess
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x642544], eax
jmp 0x425329
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, dword [esp + 0x6c]
mov ebp, dword [esp + 0x68]
mov edi, ebp
push 0x16
mov eax, dword [esi]
push ebx
mov ecx, eax
push ebx
shl ecx, 6
add ecx, eax
push 0x42f360
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
lea ecx, [eax + ecx*2]
xor eax, eax
shl ecx, 4
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x42538c
mov eax, dword [0x642544]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov dword [esi], 0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x54
ret
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], 0x1c
push ecx
push 0
push 0x42f360
push 0
push ebx
mov dword [esp + 0x30], 0
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
je 0x42555f
add ebp, 0x114
mov dword [esp + 0x10], ebp
mov edi, dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailA]
lea edx, [esp + 0x18]
push 0
push edx
push 0
lea eax, [esp + 0x34]
push 0
push eax
push ebx
call edi
mov eax, dword [esp + 0x18]
push eax
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
lea ecx, [esp + 0x18]
push 0
mov ebp, eax
push ecx
push esi
lea edx, [esp + 0x34]
push ebp
push edx
push ebx
mov dword [ebp], 5
call edi
test eax, eax
je 0x425558
lea eax, [ebp + 4]
push str.usbstor
push eax
call fcn.00424360
add esp, 8
test eax, eax
je 0x42551e
mov ecx, dword [esp + 0x10]
mov esi, ebp
lea eax, [ecx + 0x514]
mov ecx, dword [esp + 0x18]
mov edx, ecx
lea edi, [eax - 0x518]
xor eax, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x10]
and ecx, 3
mov dword [esp + 0x20], eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
mov dword [esp + 0x24], eax
push ecx
push edx
call fcn.004251c0
mov eax, dword [0x642548]
add esp, 8
test eax, eax
jne 0x4254d8
mov al, byte [esp + 0x20]
test al, al
je 0x4254d8
movsx eax, al
push eax
lea ecx, [esp + 0x48]
push str._c:_
push ecx
call sub.MSVCRT.dll_sprintf
add esp, 0xc
lea edx, [esp + 0x44]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
jne 0x4254d8
movsx eax, byte [esp + 0x20]
push eax
lea ecx, [esp + 0x48]
push str.._c:
push ecx
call sub.MSVCRT.dll_sprintf
lea edi, [esp + 0x50]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x10]
lea esi, [eax - 0x114]
push esi
call fcn.00425120
add esp, 4
test eax, eax
je 0x42551e
push esi
call fcn.00424a80
mov ecx, dword [esp + 0x14]
mov esi, ecx
lea eax, [ecx + 0x514]
push eax
push esi
call fcn.004259c0
mov ecx, dword [esp + 0x20]
add esp, 0xc
inc ecx
add esi, 0x830
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], esi
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x14]
cmp eax, dword [edx]
jge 0x42555f
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x28]
inc eax
push ecx
push eax
push 0x42f360
push 0
push ebx
mov dword [esp + 0x30], eax
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
jne 0x4253c3
jmp 0x42555f
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edx, dword [esp + 0x6c]
mov esi, dword [esp + 0x14]
push ebx
mov dword [edx], esi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
test esi, esi
je 0x42568f
push 0x30800
push 0
mov dword [esp + 0x74], pe_nt_image_headers32
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
lea eax, [esp + 0x6c]
push eax
push ebx
mov dword [esp + 0x28], ebx
call fcn.00424b60
add esp, 8
test esi, esi
jle 0x42567a
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x10], esi
lea ebp, [ecx + 0x10]
test eax, eax
mov dword [esp + 0x1c], 0
jle 0x425661
add ebx, 0x208
lea edx, [ebx - 0x108]
lea eax, [ebp + 0x104]
push edx
push eax
call sub.MSVCRT.dll_strstr
add esp, 8
test eax, eax
je 0x425642
lea edi, [ebx - 0x208]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp + 0x630]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx - 4]
mov dword [ebp + 0x628], ecx
mov edx, dword [ebx - 8]
mov dword [ebp + 0x62c], edx
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x6c]
inc ecx
add ebx, 0x308
cmp ecx, eax
mov dword [esp + 0x1c], ecx
jl 0x4255ce
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
add ebp, 0x830
dec ecx
mov dword [esp + 0x10], ecx
jne 0x4255b8
mov esi, dword [esp + 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x68]
push esi
push eax
call fcn.00424430
add esp, 8
mov ecx, dword [0x642544]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x54
ret