Function at 0x419260
Capabilities:
Create thread
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42597b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x21c
push esi
lea eax, [ebp - 0x128]
push eax
push 0x105
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x40]
test eax, eax
je 0x4192f2
lea ecx, [ebp - 0x10]
push str.Already_open
push ecx
call fcn.0041ff50
mov edx, dword [ebp + 0x1c]
push eax
push str.C:_ob_bora_42958_bora_apps_vmount_VmountDisk.cpp
push 0x5b
push 7
push 1
mov dword [edx], eax
call fcn.004090e0
add esp, 0x1c
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, 0x80040209
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x18
push ebx
mov ebx, dword [ebp + 0xc]
push edi
push 0x104
lea edi, [esi + 0x64]
push ebx
push edi
call fcn.0041fd70
lea eax, [esi + 0x168]
push eax
push 0x104
push ebx
mov dword [ebp - 0x18], eax
call sub.vmxScsiLib.dll_VmxScsiLib_CpySanitizePath
mov ecx, dword [ebp + 0x10]
mov ebx, dword [sym.imp.MSVCR71.dll__mbschr]
push 0x40
push edi
mov dword [esi + 0x34], ecx
call ebx
add esp, 0x20
test eax, eax
je 0x419343
push 0x3a
push eax
call ebx
add esp, 8
test eax, eax
jne 0x419419
push 9
push edi
push str.blklst:__
call dword [sym.imp.MSVCR71.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x41936d
push 0x40
push edi
call ebx
add esp, 8
test eax, eax
setne al
test al, al
jne 0x419419
push 0
push 0
lea edx, [ebp - 0x228]
push edx
lea eax, [ebp + 0xc]
push eax
push edi
mov dword [ebp - 0x14], 0
call dword [sym.imp.MSVCR71.dll__splitpath]
lea ecx, [ebp - 0x228]
push ecx
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp - 0x1c]
push str._s_s
push eax
call fcn.0041ff50
add esp, 0x24
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x41940a
mov esi, dword [ebp + 0x1c]
push esi
push str.setting_current_directory
call fcn.0041e6f0
mov ecx, dword [esi]
push ecx
push str.C:_ob_bora_42958_bora_apps_vmount_VmountDisk.cpp
push 0x7a
push 7
push 1
call fcn.004090e0
push ebx
call dword [sym.imp.MSVCR71.dll_free]
add esp, 0x20
mov dword [ebp - 4], 0xffffffff
lea edx, [ebp - 0x128]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
pop edi
pop ebx
mov eax, 0x80004005
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x18
push ebx
call dword [sym.imp.MSVCR71.dll_free]
mov edx, dword [ebp - 0x14]
add esp, 4
jmp 0x41941e
mov edx, 1
mov al, byte [ebp + 0x14]
xor ecx, ecx
test al, 0x20
je 0x41942c
mov ecx, 2
test al, 0x40
je 0x419433
or ecx, 4
test al, 0x10
je 0x41943a
or ecx, 8
test al, al
jns 0x419445
test edx, edx
jne 0x419445
or ecx, 1
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x419457
xor edx, edx
cmp eax, 1
setne dl
inc edx
mov eax, edx
lea ebx, [esi + 0x44]
push ebx
push ecx
push eax
push edi
mov edi, dword [ebp + 0x18]
call dword [edi + 8]
add esp, 0x10
test eax, eax
je 0x41948a
call dword [edi + 0x18]
push eax
lea eax, [ebp - 0x10]
push str.Cannot_open_disk_file:__s
push eax
call fcn.0041ff50
mov ecx, dword [ebp + 0x1c]
add esp, 0xc
mov dword [ecx], eax
jmp 0x419526
mov ecx, dword [ebx]
lea eax, [esi + 0x48]
push eax
push ecx
call dword [edi + 0x10]
add esp, 8
test eax, eax
je 0x4194cb
push ebx
call dword [edi + 0xc]
lea edx, [ebp - 0x10]
push str.Cannot_get_disk_info
push edx
call fcn.0041ff50
mov ecx, dword [ebp + 0x1c]
push eax
push str.C:_ob_bora_42958_bora_apps_vmount_VmountDisk.cpp
push 0xa5
push 7
push 1
mov dword [ecx], eax
call fcn.004090e0
add esp, 0x20
jmp 0x419526
lea eax, [esi + 0x58]
push eax
push 1
push 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x419552
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3f0
mov dword [ebp + 0x10], eax
je 0x419552
push ebx
call dword [edi + 0xc]
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x10]
push str.Cannot_get_thread_token___i
push edx
call fcn.0041ff50
mov ecx, dword [ebp + 0x1c]
push eax
push str.C:_ob_bora_42958_bora_apps_vmount_VmountDisk.cpp
push 0xbf
push 7
push 1
mov dword [ecx], eax
call fcn.004090e0
add esp, 0x24
mov dword [ebp - 4], 0xffffffff
lea edx, [ebp - 0x128]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
pop edi
pop ebx
mov eax, 0x80040204
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x18
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
mov dword [esi + 0x60], eax
jne 0x419586
push ebx
call dword [edi + 0xc]
lea eax, [ebp - 0x10]
push str.Failed_to_create_event_object
push eax
call fcn.0041ff50
push eax
push str.C:_ob_bora_42958_bora_apps_vmount_VmountDisk.cpp
push 0xc9
jmp 0x4195cd
lea eax, [ebp - 0x20]
push eax
push 0
push esi
push 0x4191b0
push 0
push 0
call dword [sym.imp.MSVCR71.dll__beginthreadex]
add esp, 0x18
test eax, eax
mov dword [esi + 0x5c], eax
jne 0x41960a
mov ecx, dword [esi + 0x60]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [edi + 0xc]
lea edx, [ebp - 0x10]
push str.Failed_to_create_thread
push edx
call fcn.0041ff50
push eax
push str.C:_ob_bora_42958_bora_apps_vmount_VmountDisk.cpp
push 0xd8
mov ecx, dword [ebp + 0x1c]
push 7
push 1
mov dword [ecx], eax
call fcn.004090e0
add esp, 0x20
mov dword [ebp - 4], 0xffffffff
lea edx, [ebp - 0x128]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
pop edi
pop ebx
mov eax, 0x80040207
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x38], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0x40], edi
mov dword [esi + 0x1c], 0
mov dword [esi + 0x3c], eax
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov edx, dword [ebp - 0x18]
push edx
push str.disk__s_was_opened
push str.C:_ob_bora_42958_bora_apps_vmount_VmountDisk.cpp
push 0xe3
push 7
push 0
call fcn.004090e0
add esp, 0x18
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
xor eax, eax
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x18