Function at 0x419e2a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x5cc
push edi
xor edi, edi
cmp eax, edi
jne 0x419e44
xor eax, eax
jmp 0x41a290
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, 0x412f4e
mov dword [ebx], esi
cmp ecx, 7
jne 0x419e6f
cmp byte [eax + 0x18], 0
jne 0x41a28b
push dword [ebp + 0x14]
push ebx
push dword [eax]
call fcn.0041f9b4
jmp 0x419ea4
cmp ecx, 6
jne 0x419e8b
cmp byte [eax + 0x18], 0
jne 0x41a28b
push dword [ebp + 0x14]
push ebx
push dword [eax]
call fcn.0041f891
jmp 0x419ea4
cmp ecx, edi
jne 0x419eac
cmp byte [eax + 0x18], 0
jne 0x41a28b
push dword [ebp + 0x14]
push ebx
push dword [eax]
call fcn.0041f8f2
add esp, 0xc
jmp 0x41a28e
cmp ecx, 2
jne 0x41a10a
cmp byte [eax + 0x18], 0
jne 0x41a28b
push dword [ebp + 0x14]
push ebx
push dword [eax]
call fcn.0041fa15
add esp, 0xc
test eax, eax
setne byte [ebp - 1]
cmp byte [ebp - 1], 0
je 0x41a101
push 5
mov edi, str.SCSI
mov esi, ebx
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x419efc
mov eax, dword [ebp + 8]
cmp byte [eax + 0x1b], 0
je 0x419efc
mov dword [ebx], 0x454449
xor eax, eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x14]
call fcn.0041fee8
add esp, 0x20
test al, al
je 0x41a101
push 0x10
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 8]
call fcn.0044802e
mov edi, ebx
add esp, 0xc
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x419f59
mov esi, 0x44c9ac
lea eax, [ebp - 0x3c]
movsw word es:[edi], word [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x419f6d
mov edi, ebx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x419f79
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0x10
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0044802e
mov edi, ebx
add esp, 0xc
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x419fa3
mov esi, 0x44c9ac
lea eax, [ebp - 0x3c]
movsw word es:[edi], word [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x419fb7
mov edi, ebx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x419fc3
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0x10
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x18]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0044802e
mov edi, ebx
add esp, 0xc
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x419fed
mov esi, 0x44c9ac
lea eax, [ebp - 0x3c]
movsw word es:[edi], word [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41a001
mov edi, ebx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x41a00d
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0x10
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0044802e
mov edi, ebx
add esp, 0xc
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x41a037
mov esi, 0x44c9ac
lea eax, [ebp - 0x3c]
movsw word es:[edi], word [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41a04b
mov edi, ebx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x41a057
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0x10
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0044802e
mov edi, ebx
add esp, 0xc
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x41a081
mov esi, 0x44c9ac
lea eax, [ebp - 0x3c]
movsw word es:[edi], word [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41a095
mov edi, ebx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x41a0a1
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0x10
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0xc]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0044802e
mov edi, ebx
add esp, 0xc
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x41a0cb
mov esi, 0x44c9ac
lea eax, [ebp - 0x3c]
movsw word es:[edi], word [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41a0df
sub eax, esi
dec ebx
mov edi, ebx
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x41a0eb
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
movzx eax, byte [ebp - 1]
jmp 0x41a28e
cmp ecx, 4
jne 0x41a124
cmp byte [eax + 0x18], 0
jne 0x41a28b
push 0xa
push ebx
push dword [eax + 0x14]
jmp 0x41a2e1
cmp ecx, 8
jne 0x41a13f
push dword [ebp + 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp eax, dword [ebp + 0x14]
sbb eax, eax
neg eax
jmp 0x41a28e
cmp ecx, 9
jne 0x41a1ed
cmp byte [eax + 0x18], 0
je 0x41a221
cmp byte [eax + 0x1c], 0
jne 0x41a221
lea ecx, [ebp - 0x5cc]
push ecx
lea ecx, [ebp - 8]
push ecx
push 0x64
push eax
mov dword [ebp - 8], edi
call fcn.004198bf
add esp, 0x10
mov byte [ebx], 0
test eax, eax
je 0x41a28b
mov dword [ebp + 8], edi
cmp dword [ebp - 8], edi
jbe 0x41a28b
push 0xa
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp + 8]
push dword [ebp + eax*4 - 0x5cc]
call fcn.0044802e
lea eax, [ebp - 0x3c]
add esp, 0xc
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41a1a9
mov edi, ebx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x41a1b5
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x41a1ce
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
mov esi, 0x44c9a8
movsw word es:[edi], word [esi]
cmp eax, dword [ebp - 8]
jb 0x41a18c
jmp 0x41a28b
cmp ecx, 0xc
jne 0x41a207
cmp byte [eax + 0x18], 0
je 0x41a221
push dword [ebp + 0x14]
push ebx
push eax
call fcn.00419888
jmp 0x41a2e6
cmp ecx, 0xb
jne 0x41a226
cmp byte [eax + 0x18], 0
je 0x41a221
push dword [ebp + 0x14]
push ebx
push eax
call fcn.00419851
jmp 0x41a2e6
mov byte [ebx], 0
jmp 0x41a28b
cmp ecx, 0xa
jne 0x41a238
mov esi, str.readwrite
mov edi, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
jmp 0x41a28b
cmp ecx, 1
jne 0x41a293
mov dword [ebx], esi
cmp byte [eax + 0x18], 0
jne 0x41a289
movzx ecx, byte [eax + 0x14]
push ebx
push ecx
push dword [eax]
call fcn.00420398
add esp, 0xc
test eax, eax
jne 0x41a28b
push ebx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x14]
call fcn.0042019d
add esp, 0x10
test al, al
jne 0x41a28b
push dword [ebp + 0x14]
mov eax, dword [ebp + 8]
push ebx
push dword [eax]
call fcn.0041f953
add esp, 0xc
test eax, eax
jne 0x41a28b
mov dword [ebx], esi
xor eax, eax
inc eax
pop esi
pop ebx
pop edi
leave
ret
cmp ecx, 0xd
jne 0x41a2b0
mov dword [ebx], esi
cmp byte [eax + 0x18], 0
jne 0x41a289
lea ecx, [ebp - 0x43c]
push ecx
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0xc]
jmp 0x41a2cb
cmp ecx, 0xe
jne 0x41a2eb
mov dword [ebx], esi
cmp byte [eax + 0x18], 0
jne 0x41a289
lea ecx, [ebp - 0x43c]
push ecx
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp + 8]
push ecx
push dword [eax + 0x14]
call fcn.0042019d
add esp, 0x10
test al, al
je 0x41a289
push 0x10
push ebx
push dword [ebp + 8]
call fcn.0044802e
add esp, 0xc
jmp 0x41a28b
cmp ecx, 5
jne 0x41a289
cmp byte [eax + 0x18], 0
jne 0x41a289
mov esi, str..PHYSICALDRIVE
lea edi, [ebp - 0x424]
rep movsd dword es:[edi], dword [esi]
push 0xa
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x14]
movsb byte es:[edi], byte [esi]
call fcn.0044802e
lea eax, [ebp - 0x3c]
add esp, 0xc
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41a31d
lea edi, [ebp - 0x424]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x41a32d
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
mov eax, ebx
rep movsb byte es:[edi], byte [esi]
mov byte [ebx], 0
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41a34d
push 2
push dword [ebp + 0x14]
sub eax, esi
add eax, ebx
push eax
lea eax, [ebp - 0x424]
push str.SCSILogicalUnit
push eax
call fcn.0041f4ce
mov edi, ebx
add esp, 0x14
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x41a375
mov esi, 0x44c9ac
mov eax, ebx
movsw word es:[edi], word [esi]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41a389
push 1
push dword [ebp + 0x14]
sub eax, esi
add eax, ebx
push eax
lea eax, [ebp - 0x424]
push str.SCSIBus
push eax
call fcn.0041f4ce
mov edi, ebx
add esp, 0x14
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x41a3b1
mov esi, 0x44c9ac
mov eax, ebx
movsw word es:[edi], word [esi]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41a3c5
push 2
push dword [ebp + 0x14]
sub eax, esi
add eax, ebx
push eax
lea eax, [ebp - 0x424]
push str.SCSIPort
push eax
call fcn.0041f4ce
mov edi, ebx
add esp, 0x14
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x41a3ed
mov esi, 0x44c9ac
mov eax, ebx
movsw word es:[edi], word [esi]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41a401
push 2
push dword [ebp + 0x14]
sub eax, esi
add eax, ebx
push eax
lea eax, [ebp - 0x424]
push str.SCSITargetId
push eax
call fcn.0041f4ce
add esp, 0x14
jmp 0x41a28b