Function at 0x447260
Capabilities:
Check for time delay via queryperformancecounter
Delete file
Unmount volume via ioctl
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ade50
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push esi
push edi
mov eax, dword [0x4ecba0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x34], ecx
xor edi, edi
mov byte [ebp - 0x11], 1
mov dword [ebp - 0x18], edi
call fcn.0046d74a
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x4472b1
push 0x80004005
call fcn.00402240
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], edi
call fcn.0046d74a
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x4472dd
push 0x80004005
call fcn.00402240
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x20], esi
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x2c], edi
call fcn.0046d74a
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x447310
push 0x80004005
call fcn.00402240
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x28]
call fcn.004024f0
mov bl, byte [ebp + 8]
mov byte [ebp - 4], 4
cmp bl, 0x63
jne 0x4473d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x63
push 0x24c0
push str.CAsmtUSBDev::vWriteSectors
push str._s:_d:__cDriveLetter_:__c___It_will_damage_System
call fcn.0044b7f0
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
add esp, 0x10
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x447379
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x447399
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4473bf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [ebp + 0x18]
xor edx, edx
mov esi, 0x200
mov eax, ecx
div esi
mov dword [ebp + 8], edx
fild dword [ebp + 8]
mov esi, eax
test edx, edx
jge 0x4473f5
fadd dword [0x4c56f8]
fcomp dword [0x4d2464]
fnstsw ax
test ah, 0x44
jnp 0x44740b
inc esi
shl esi, 9
mov dword [ebp - 0x24], esi
jmp 0x447410
mov dword [ebp - 0x24], ecx
mov esi, ecx
movsx ecx, bl
push ecx
lea edx, [ebp - 0x20]
push str.._c:
push edx
call fcn.00402d80
mov eax, dword [ebp - 0x20]
add esp, 0xc
push edi
push edi
push 3
push edi
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0
push 0
push 0
push 0
mov edi, eax
push 0x90018
push edi
mov dword [ebp - 0x18], edi
call ebx
push 0
lea edx, [ebp - 0x1c]
push edx
push 0
push 0
push 0
push 0
push 0x90020
push edi
call ebx
cmp edi, 0xffffffff
je 0x447610
mov dword [ebp + 8], 0
cmp dword [ebp + 8], 1
jg 0x44763e
mov ecx, dword [ebp + 0x14]
mov eax, 0x200
push ecx
mov ecx, dword [ebp + 0x10]
movzx eax, ax
cdq
push ecx
push edx
push eax
call fcn.00491af0
cmp byte [ebp + 0x1c], 0
mov ebx, eax
mov dword [ebp - 0x58], edx
je 0x4474b9
lea edx, [ebp - 0x64]
push edx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
cmp esi, 0x2000000
jbe 0x4474c6
mov esi, 0x2000000
push esi
call fcn.00490201
push esi
mov edi, eax
push 0
push edi
call fcn.0048f850
mov eax, dword [ebp + 0xc]
push esi
push eax
push edi
call fcn.00490450
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x58]
add esp, 0x1c
push 0
lea edx, [ebp - 0x38]
push edx
push ebx
push eax
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [ebp + 0x1c], 0
mov ebx, dword [ebp + 8]
jne 0x44750d
cmp ebx, 1
jne 0x447517
lea ecx, [ebp - 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x18]
push 0
lea edx, [ebp - 0x1c]
push edx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp byte [ebp + 0x1c], 0
mov byte [ebp - 0x11], al
je 0x447553
cmp ebx, 1
jne 0x447553
lea ecx, [ebp - 0x44]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edx, dword [ebp - 0x44]
sub edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x40]
sbb eax, dword [ebp - 0x48]
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x50], eax
cmp byte [ebp - 0x11], 0
jne 0x447591
cmp dword [ebp - 0x1c], esi
je 0x447591
mov byte [ebp - 0x11], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push ecx
push edx
push eax
push 0x24ec
push str.CAsmtUSBDev::vWriteSectors
push str._s:_d:_WriteFile_Error_:__d___uiWriteLogicalSector__d____dwRpt__d____dwErrorCode___d_
call fcn.0044b7f0
mov edi, dword [ebp - 0x18]
jmp 0x44763b
cmp byte [ebp + 0x1c], 0
je 0x4475f8
cmp ebx, 1
jne 0x4475f8
mov ecx, dword [ebp + 0x18]
fild dword [ebp + 0x18]
test ecx, ecx
jge 0x4475ac
fadd qword [0x4bba90]
fild qword [ebp - 0x54]
mov eax, dword [ebp - 0x34]
fild qword [ebp - 0x64]
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
sub esp, 8
fdivp st(1)
fld qword [0x4c5680]
fmul st(1), st(0)
fmulp st(1)
fdivp st(1)
fadd qword [eax + 0x720]
fst qword [eax + 0x720]
mov eax, dword [ebp + 0x10]
fstp qword [esp]
push edx
push eax
push ecx
push 0x24f6
push str.CAsmtUSBDev::vWriteSectors
push str._s:_d:_COUNTING_ucpWriteBuffer_:__x___dwlWriteLocationSector_:__lld__m_fsdif_W:__f
call fcn.0044b720
add esp, 0x20
push edi
call fcn.00490330
mov esi, dword [ebp - 0x24]
mov edi, dword [ebp - 0x18]
add esp, 4
inc ebx
mov dword [ebp + 8], ebx
jmp 0x447482
mov byte [ebp - 0x11], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x10]
push edx
push eax
push ecx
push 0x2505
push str.CAsmtUSBDev::vWriteSectors
push str._s:_d:__ucpWriteBuffer_:__x___dwlWriteLocationSector_:__lld__dwErrorCode__d
call fcn.0044b7f0
add esp, 0x1c
mov esi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push 0
lea edx, [ebp - 0x2c]
push edx
push 0
push 0
push 0
push 0
push 0x9001c
push edi
call esi
push 0
lea eax, [ebp - 0x2c]
push eax
push 0
push 0
push 0
push 0
push 0x70140
push edi
call esi
test edi, edi
je 0x44767b
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 4], 3
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4476af
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4476d2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4476f8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18