Function at 0x422090
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x45892f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x228
mov eax, dword [0x471df4]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x14], eax
xor edi, edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x240], edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 0x10]
mov bl, 3
xor ebp, ebp
cmp eax, edi
mov byte [esp + 0x240], bl
mov dword [esp + 0x2c], edi
je 0x4223c1
call fcn.00422000
test eax, eax
jne 0x4223c1
lea eax, [esp + 0x30]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str._system.ini
lea ecx, [esp + 0x24]
call fcn.0044a442
mov esi, eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x240], 4
push ecx
lea ecx, [esp + 0x20]
call fcn.0044a442
push esi
lea edx, [esp + 0x28]
push eax
push edx
mov byte [esp + 0x24c], 5
call fcn.0044a5b7
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x244], 6
call fcn.0044a4c1
lea ecx, [esp + 0x24]
mov byte [esp + 0x240], 5
call fcn.0044a3d4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x240], 4
call fcn.0044a3d4
lea ecx, [esp + 0x20]
mov byte [esp + 0x240], bl
call fcn.0044a3d4
push str._system.new
lea ecx, [esp + 0x28]
call fcn.0044a442
mov esi, eax
lea eax, [esp + 0x30]
lea ecx, [esp + 0x1c]
push eax
mov byte [esp + 0x244], 7
call fcn.0044a442
push esi
lea ecx, [esp + 0x24]
push eax
push ecx
mov byte [esp + 0x24c], 8
call fcn.0044a5b7
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x244], 9
call fcn.0044a4c1
lea ecx, [esp + 0x20]
mov byte [esp + 0x240], 8
call fcn.0044a3d4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x240], 7
call fcn.0044a3d4
lea ecx, [esp + 0x24]
mov byte [esp + 0x240], bl
call fcn.0044a3d4
push str._system.bak
lea ecx, [esp + 0x28]
call fcn.0044a442
mov esi, eax
lea edx, [esp + 0x30]
lea ecx, [esp + 0x1c]
push edx
mov byte [esp + 0x244], 0xa
call fcn.0044a442
push esi
push eax
mov byte [esp + 0x248], 0xb
lea eax, [esp + 0x28]
push eax
call fcn.0044a5b7
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x244], 0xc
call fcn.0044a4c1
lea ecx, [esp + 0x20]
mov byte [esp + 0x240], 0xb
call fcn.0044a3d4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x240], 0xa
call fcn.0044a3d4
lea ecx, [esp + 0x24]
mov byte [esp + 0x240], bl
call fcn.0044a3d4
mov ecx, dword [esp + 0x14]
push 0x46ae38
push ecx
call fcn.0043af00
mov esi, eax
add esp, 8
test esi, esi
je 0x4223c1
mov edx, dword [esp + 0x18]
push 0x46ae3c
push edx
call fcn.0043af00
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x42234b
push esi
lea eax, [esp + 0x138]
push 0x103
push eax
call fcn.0043ae30
add esp, 0xc
test eax, eax
je 0x422342
lea ecx, [esp + 0x134]
push ecx
lea ecx, [esp + 0x14]
call fcn.0044a511
lea ecx, [esp + 0x10]
call fcn.0044a88a
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x422421
push str._386ENH_
lea ecx, [esp + 0x14]
call fcn.00449464
cmp eax, 0xffffffff
je 0x422312
mov edi, 1
mov dword [esp + 0x2c], edi
lea edx, [esp + 0x134]
push edx
push 0x46c6c0
push ebx
call fcn.0043b090
add esp, 0xc
push esi
lea eax, [esp + 0x138]
push 0x103
push eax
call fcn.0043ae30
add esp, 0xc
test eax, eax
jne 0x4222d0
push ebx
call fcn.0043ad20
add esp, 4
push esi
call fcn.0043ad20
add esp, 4
test ebp, ebp
je 0x4223c1
mov ecx, dword [esp + 0x14]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x14]
push edx
push eax
call fcn.0042cf30
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
push ecx
push edx
call fcn.0042cf30
mov eax, dword [esp + 0x28]
push eax
call fcn.0042cc40
push str.SystemCurrentControlSetControlCommAlias
push 0x80000002
call fcn.00430ab0
push str.SystemCurrentControlSetServicesVxDTURBOVBF
push 0x80000002
call fcn.00430ab0
push str.SystemCurrentControlSetServicesVxDTURBOVCD
push 0x80000002
call fcn.00430ab0
add esp, 0x2c
lea ecx, [esp + 0x10]
mov byte [esp + 0x240], 2
call fcn.0044a3d4
lea ecx, [esp + 0x28]
mov byte [esp + 0x240], 1
call fcn.0044a3d4
lea ecx, [esp + 0x18]
mov byte [esp + 0x240], 0
call fcn.0044a3d4
lea ecx, [esp + 0x14]
mov dword [esp + 0x240], 0xffffffff
call fcn.0044a3d4
mov ecx, dword [esp + 0x238]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x234
ret
test edi, edi
je 0x422312
push 0x5b
lea ecx, [esp + 0x14]
call fcn.0044a84f
test eax, eax
jne 0x422447
xor edi, edi
test ebp, ebp
je 0x422342
jmp 0x422312
push str.DEVICE
lea ecx, [esp + 0x14]
call fcn.00449464
cmp eax, 0xffffffff
je 0x422312
push str.TURBOVCD.VXD
lea ecx, [esp + 0x14]
call fcn.00449464
cmp eax, 0xffffffff
jne 0x422488
push str.COMBUFF
lea ecx, [esp + 0x14]
call fcn.00449464
cmp eax, 0xffffffff
je 0x422312
mov ebp, 1
jmp 0x422328