Function at 0x404d00
Capabilities:
Get common file path

Disassembly:
sub esp, 0x18c
mov dl, byte [0x410f30]
push ebx
push ebp
push esi
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x31]
mov byte [esp + 0x30], dl
mov byte [esp + 0x138], dl
rep stosd dword es:[edi], eax
mov ecx, 0x18
lea edi, [esp + 0x139]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor esi, esi
push esi
push esi
stosb byte es:[edi], al
mov eax, dword [0x43783c]
push 0x147
push 0x3f0
push eax
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov ebp, eax
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x30]
push ecx
push 0x64
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
xor bl, bl
jmp 0x404d76
xor esi, esi
test bl, bl
je 0x404f18
cmp bl, 1
jne 0x404de4
mov edi, dword [ebp*8 + 0x40f038]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x30]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x30]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.WINNT4.0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x404f18
cmp bl, 2
jne 0x404e57
lea eax, [esp + 0x30]
push eax
push 0x64
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, dword [ebp*8 + 0x40f038]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x30]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x30]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.WINDOWS
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x404f18
cmp bl, 3
jne 0x404f18
cmp byte [0x410f38], 1
jne 0x404e80
mov eax, dword [esp + 0x1a0]
lea ecx, [esp + 0x138]
push eax
push 0x40ffa4
push ecx
jmp 0x404e95
mov edx, dword [esp + 0x1a0]
lea eax, [esp + 0x138]
push edx
push str.Be_pressed_for_pci_card_driver_file:_s.sys_at_current_directory._r_nmanually_appoint_directory_
push eax
call fcn.004059a0
mov edx, dword [0x43783c]
add esp, 0xc
lea ecx, [esp + 0x138]
push 0x34
push str.Driver_inatall
push ecx
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 7
je 0x404f44
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x14]
lea edx, [esp + 0x10]
rep stosd dword es:[edi], eax
mov eax, dword [0x43783c]
lea ecx, [esp + 0x30]
push edx
mov byte [esp + 0x34], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], str.Select_Directory
mov dword [esp + 0x24], 0x51
mov dword [esp + 0x28], esi
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderA]
cmp eax, esi
je 0x404f44
lea ecx, [esp + 0x30]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov edx, dword [esp + 0x1a0]
lea eax, [esp + 0x30]
push edx
push eax
call fcn.00404bd0
add esp, 8
cmp al, 3
je 0x404f51
cmp bl, 2
jne 0x404f39
or bl, 0xff
inc bl
cmp bl, 4
jl 0x404d74
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18c
ret
lea edi, [esp + 0x30]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, 1
mov edx, ecx
mov esi, edi
mov edi, 0x43e668
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18c
ret