Function at 0x413410
Capabilities:
Check for time delay via gettickcount
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1ac
push ebx
mov ebx, ecx
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x6c], ecx
push esi
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x4c], eax
push edi
xor edi, edi
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x64], ecx
mov ecx, ebx
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x74], edi
mov dword [ebp - 0xc], 1
call fcn.004129c0
mov esi, dword [ebx + 0x3c]
push 4
add esi, 0x20
push 0x1000
lea edx, [esi + 0x1000]
push edx
push edi
mov dword [ebp - 0x38], esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
cmp eax, edi
mov dword [ebp - 0x10], eax
jne 0x413488
push 0xe
push str.Error:__d
push str.C:_ob_bora_42958_bora_apps_vmount_VmountDevice.cpp
push 0x187
jmp 0x4134aa
push esi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualLock]
test eax, eax
jne 0x4134c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Last_Error:_0x_x
push str.C:_ob_bora_42958_bora_apps_vmount_VmountDevice.cpp
push 0x18c
push 7
push 1
call fcn.004090e0
add esp, 0x18
pop edi
pop esi
mov eax, 0xe
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push edi
push 1
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
call edi
push 0
push 0
push 1
push 0
mov dword [ebp - 0x44], eax
call edi
mov ecx, dword [ebx + 0x1b4]
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x64], eax
mov eax, dword [ebx + 0x1b0]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x14], esi
mov esi, dword [ebp - 4]
xor edi, edi
nop
test edi, edi
jne 0x413566
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x38]
ja 0x413b2c
mov ecx, dword [ebp - 0x44]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x54]
push edx
mov edx, dword [ebx + 0x40]
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
push ecx
add eax, 0xfe0
push eax
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x413548
xor esi, esi
mov dword [ebp - 0xc], 1
jmp 0x41355e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
xor eax, eax
cmp esi, 0x3e5
setne al
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], esi
mov edi, 1
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4135d9
push 0
push 0
lea ecx, [ebp - 0x60]
push ecx
push 3
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 0x102
jne 0x4135e9
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x4135b3
mov edx, dword [ebx + 0x40]
push 1
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x54]
push ecx
push edx
mov dword [ebp - 0xc], 1
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x413ade
xor esi, esi
mov dword [ebp - 4], esi
cmp edi, 2
jne 0x4136ad
test esi, esi
je 0x4134fd
push esi
push str.Error:__d
push str.C:_ob_bora_42958_bora_apps_vmount_VmountDevice.cpp
push 0x231
jmp 0x413bd3
push 0xffffffffffffffff
push 0
lea edx, [ebp - 0x60]
push edx
push 3
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 0xffffffff
je 0x413bbb
cmp eax, 3
jae 0x413bbb
cmp eax, 1
je 0x413acf
test eax, eax
jne 0x413584
mov eax, dword [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [ebp - 0x64]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [ebx + 0x40]
lea edx, [ebp - 0x74]
push edx
lea eax, [ebp - 0xac]
push eax
push 0
push 0
push 0
push 0
push 0x2a0010
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x413500
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x3e5
mov dword [ebp - 4], esi
jne 0x413bdf
push 0xffffffffffffffff
lea edx, [ebp - 0x64]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x413690
mov edx, dword [ebx + 0x40]
push 1
lea eax, [ebp - 0xac]
push eax
lea ecx, [ebp - 0x74]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x413500
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.Error:__d
push str.C:_ob_bora_42958_bora_apps_vmount_VmountDevice.cpp
push 0x20f
jmp 0x413bd3
cmp esi, 0x15
je 0x413b9c
cmp esi, 5
je 0x413b9c
cmp esi, 0x3e3
je 0x413b9c
cmp esi, 0x57
je 0x413b2c
test esi, esi
jne 0x413bdf
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0xfe4]
add edx, 0xfe0
xor edi, edi
cmp eax, edi
jne 0x4136fb
mov eax, dword [edx]
mov dword [ebp - 0x14], eax
jmp 0x413500
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10020
jbe 0x41371e
mov eax, dword [ebp - 0x18]
cmp ecx, eax
jbe 0x41371e
cmp eax, 0x10020
mov dword [ebp - 0x14], 0x10020
jb 0x41371e
mov dword [ebp - 0x14], eax
mov al, byte [edx + 8]
test al, 2
je 0x413780
movzx eax, byte [edx + 9]
lea ecx, [edx + 0x20]
mov dword [ebp - 0x3c], ecx
mov ecx, dword [edx + 0xc]
mov edx, dword [edx]
sub edx, 0x20
add eax, 0x20
cmp ecx, edx
mov dword [ebp - 0x20], 0x20
jne 0x413b36
cmp dword [ebx + 0x1b8], edi
je 0x4137ed
mov esi, dword [ebx + 0x1d0]
mov edx, dword [ebx + 0x1d4]
add esi, ecx
mov ecx, dword [ebx + 0x1c4]
adc edx, edi
inc ecx
mov dword [ebx + 0x1d0], esi
mov dword [ebx + 0x1d4], edx
mov dword [ebx + 0x1c4], ecx
jmp 0x4137ed
test al, 1
movzx eax, byte [edx + 9]
je 0x4137d5
mov ecx, dword [edx + 0xc]
cmp eax, ecx
ja 0x413791
mov eax, ecx
add edx, 0x20
mov dword [ebp - 0x3c], edx
mov edx, dword [ebx + 0x1b8]
add eax, 0x20
cmp edx, edi
lea esi, [ecx + 0x20]
mov dword [ebp - 0x20], esi
je 0x4137ed
mov esi, dword [ebx + 0x1c8]
mov edx, dword [ebx + 0x1cc]
add esi, ecx
mov ecx, dword [ebx + 0x1c0]
adc edx, edi
inc ecx
mov dword [ebx + 0x1c8], esi
mov dword [ebx + 0x1cc], edx
mov dword [ebx + 0x1c0], ecx
jmp 0x4137ed
mov ecx, dword [edx + 0xc]
add eax, 0x20
cmp ecx, edi
mov dword [ebp - 0x20], 0x20
mov dword [ebp - 0x3c], edi
jne 0x413b50
cmp eax, dword [ebp - 0x38]
ja 0x413b67
mov esi, dword [ebp - 0x10]
mov eax, dword [ebx + 0x14]
add esi, 0xfe0
cmp eax, 2
mov ecx, 8
lea edi, [ebp - 0xa8]
rep movsd dword es:[edi], dword [esi]
jne 0x413820
movzx eax, byte [ebx + 0x1e9]
mov dword [ebp - 0x34], eax
jmp 0x413827
mov dword [ebp - 0x34], 1
mov eax, dword [ebp - 0x34]
test eax, eax
mov dword [ebp - 0x2c], 0
jle 0x413a6f
mov esi, dword [ebp - 0x9c]
nop
mov eax, dword [ebp - 4]
test eax, eax
jne 0x413a6f
mov eax, dword [ebx + 0x14]
cmp eax, 1
je 0x41385c
cmp eax, 2
je 0x41385c
mov eax, esi
jmp 0x413887
xor edx, edx
xor eax, eax
mov ecx, dword [ebp - 0x10]
movzx edi, byte [eax + ecx + 0xff2]
add ecx, 0xfe0
shl edx, 8
or edx, edi
inc eax
cmp eax, 4
jl 0x413860
xor eax, eax
mov ah, byte [ecx + 0x17]
mov dword [ebp - 0x78], edx
mov al, byte [ecx + 0x18]
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x30], ecx
test eax, eax
jbe 0x413a37
mov eax, dword [ebx + 0x14]
cmp eax, 1
je 0x4138c0
cmp eax, 2
je 0x4138c0
mov edx, dword [ebx + 0x20]
mov edi, dword [ebx + 0x24]
mov dword [ebp - 0x88], edx
mov dword [ebp - 0x84], edi
mov dword [ebp - 0x1c], 0
jmp 0x413935
lea eax, [ebp - 0x88]
push eax
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x78]
push edx
push eax
mov ecx, ebx
call fcn.004127d0
test eax, eax
mov dword [ebp - 4], eax
jne 0x413a37
mov eax, dword [ebp - 0x80]
mov esi, dword [ebx + 0x34]
mov edi, dword [ebp - 0x84]
mov ecx, eax
shr ecx, 0x18
mov edx, eax
shr edx, 0x10
mov byte [ebp - 0x96], cl
mov ecx, eax
mov byte [ebp - 0x93], al
mov eax, dword [ebp - 0x7c]
mov byte [ebp - 0x95], dl
mov edx, eax
shr ecx, 8
shr edx, 8
imul esi, eax
mov byte [ebp - 0x94], cl
mov byte [ebp - 0x91], dl
mov byte [ebp - 0x90], al
mov dword [ebp - 0x9c], esi
mov eax, dword [ebx + 0x1b8]
test eax, eax
je 0x41394e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [ebp - 0x9c]
mov dword [ebp - 0x40], eax
mov edx, dword [ebp - 0x30]
lea eax, [ebp - 0x18]
push eax
movzx eax, byte [ebp - 0x9e]
lea ecx, [ebp - 5]
push ecx
push esi
push edx
mov edx, dword [ebp - 0x88]
push eax
lea ecx, [ebp - 0x98]
push ecx
push edi
call dword [edx + 0x14]
mov eax, dword [ebx + 0x1b8]
add esp, 0x1c
test eax, eax
je 0x41399a
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [ebp - 0x40]
mov ecx, dword [ebx + 0x1bc]
sub eax, edx
add ecx, eax
mov dword [ebx + 0x1bc], ecx
mov eax, dword [ebp - 0x9c]
mov edx, dword [ebp - 0x30]
mov esi, dword [ebp - 0x10]
add edx, eax
mov al, byte [ebp - 5]
add esi, 0xfe0
test al, al
mov dword [ebp - 0x30], edx
mov byte [esi + 0xb], al
je 0x4139cc
mov al, byte [esi + 9]
test al, al
je 0x4139da
lea ecx, [esi + 0x20]
test ecx, ecx
movzx eax, al
jne 0x4139ec
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x9c]
jmp 0x413890
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x4139cc
lea ecx, [ebp - 0x1ac]
mov eax, 0x100
lea edx, [ebp - 0x18]
push edx
lea edx, [ebp - 5]
push edx
push eax
push ecx
mov ecx, dword [ebp - 0x88]
mov byte [ebp - 0x24], al
push 6
lea eax, [ebp - 0x28]
push eax
push edi
mov byte [ebp - 0x28], 3
mov byte [ebp - 0x27], 0
mov byte [ebp - 0x26], 0
mov byte [ebp - 0x25], 0
mov byte [ebp - 0x23], 0
call dword [ecx + 0x14]
movzx eax, byte [esi + 9]
mov esi, dword [ebp - 0x9c]
add esp, 0x1c
add eax, 0x20
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0xd
mov ecx, dword [ebp - 0x34]
cmp ecx, 2
jne 0x413a60
mov eax, dword [ebp - 0x10]
mov dl, byte [eax + 0xfe8]
add eax, 0xfe0
test dl, 1
je 0x413a60
mov edx, dword [ebp - 4]
test edx, edx
jne 0x413a60
mov dl, byte [eax + 0xb]
test dl, dl
je 0x413a6f
mov eax, dword [ebp - 0x2c]
inc eax
cmp eax, ecx
mov dword [ebp - 0x2c], eax
jl 0x413840
mov edx, dword [ebp - 0x44]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0x54]
push eax
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x18]
push ecx
push edx
add eax, 0xfe0
push eax
mov eax, dword [ebx + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x413aa8
mov dword [ebp - 0xc], 1
jmp 0x4134fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
mov dword [ebp - 4], eax
jne 0x413b7e
mov dword [ebp - 0xc], 0
mov edi, 2
mov esi, eax
jmp 0x413500
mov ecx, dword [ebp - 0x5c]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
jmp 0x413bdf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x15
jne 0x413b0b
push str.driver_appears_to_have_shut_down.
push str.C:_ob_bora_42958_bora_apps_vmount_VmountDevice.cpp
push 0x222
push 4
push 3
call fcn.004090e0
add esp, 0x14
jmp 0x413bfa
push esi
push str.Error:__d
push str.C:_ob_bora_42958_bora_apps_vmount_VmountDevice.cpp
push 0x224
push 4
push 1
call fcn.004090e0
add esp, 0x18
jmp 0x413bfa
mov esi, 0xe
jmp 0x413bdf
mov esi, 0xd
push esi
push str.Error:__d
push str.C:_ob_bora_42958_bora_apps_vmount_VmountDevice.cpp
push 0x281
jmp 0x413bd3
mov esi, 0xd
push esi
push str.Error:__d
push str.C:_ob_bora_42958_bora_apps_vmount_VmountDevice.cpp
push 0x29e
jmp 0x413bd3
mov esi, 0xe
push esi
push str.Error:__d
push str.C:_ob_bora_42958_bora_apps_vmount_VmountDevice.cpp
push 0x2aa
jmp 0x413bd3
push eax
push str.Error:__d
push str.C:_ob_bora_42958_bora_apps_vmount_VmountDevice.cpp
push 0x355
push 4
push 1
call fcn.004090e0
mov esi, dword [ebp - 4]
jmp 0x413bdc
push str.driver_appears_to_have_shut_down.
push str.C:_ob_bora_42958_bora_apps_vmount_VmountDevice.cpp
push 0x246
push 4
push 3
call fcn.004090e0
add esp, 0x14
xor esi, esi
jmp 0x413bdf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.Error:__d
push str.C:_ob_bora_42958_bora_apps_vmount_VmountDevice.cpp
push 0x1dd
push 4
push 1
call fcn.004090e0
add esp, 0x18
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x413bfa
mov ecx, dword [ebx + 0x40]
push 1
lea edx, [ebp - 0x40]
push edx
lea eax, [ebp - 0x54]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov edx, dword [ebp - 0x38]
mov edi, dword [ebp - 0x10]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualUnlock]
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [ebp - 0x44]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [ebp - 0x64]
push ecx
call edi
mov edx, dword [ebx + 0x20]
call dword [edx + 4]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret