Function at 0x437730
Capabilities:
Get common file path
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x46b8c8
push eax
mov eax, 0x106c
mov dword fs:[0], esp
call fcn.0044d240
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov ebp, ecx
mov dword [esp + 0x18], ebx
call fcn.004318b0
test eax, eax
je 0x437803
mov eax, dword [esp + 0x108c]
lea edx, [esp + 0x180]
mov ecx, dword [eax]
push ecx
push str.CPrepareUninstall_::_FindDeviceINFFile_:_csDeviceID___s_n
push edx
call fcn.0044cb10
mov edi, str.ENTRY:
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x384]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x384]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x180]
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]
call fcn.00431840
mov ecx, eax
call fcn.004318e0
lea eax, [esp + 0x384]
push eax
call fcn.00431840
mov ecx, eax
call fcn.00431c70
mov eax, dword [0x4855a4]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1084], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov ecx, 0x7d
mov eax, 0x4b4b4b4b
lea edi, [esp + 0x6b0]
mov dword [esp + 0x588], ebx
mov dword [esp + 0x590], ebx
mov dword [esp + 0x594], ebx
mov dword [esp + 0x59c], ebx
mov dword [esp + 0x6ac], ebx
rep stosd dword es:[edi], eax
mov ecx, 0x1f4
xor eax, eax
lea edi, [esp + 0x8a4]
rep stosd dword es:[edi], eax
mov dword [esp + 0x5a4], 0xffffffff
lea ecx, [esp + 0x484]
push 0x104
push ecx
mov byte [esp + 0x108c], 4
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.INF_
lea ecx, [esp + 0x14]
call fcn.0045ce46
mov esi, eax
lea edx, [esp + 0x484]
lea ecx, [esp + 0x24]
push edx
mov byte [esp + 0x1088], 5
call fcn.0045ce46
push esi
push eax
lea eax, [esp + 0x3c]
mov bl, 6
push eax
mov byte [esp + 0x1090], bl
call fcn.0045cfbb
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x1088], 7
call fcn.0045cec5
lea ecx, [esp + 0x34]
mov byte [esp + 0x1084], bl
call fcn.0045cdd8
lea ecx, [esp + 0x24]
mov byte [esp + 0x1084], 5
call fcn.0045cdd8
lea ecx, [esp + 0x10]
mov byte [esp + 0x1084], 4
call fcn.0045cdd8
mov eax, dword [ebp + 4]
test eax, eax
je 0x4379c0
mov eax, dword [ebp + 8]
mov esi, 5
cmp eax, esi
jne 0x437953
lea ecx, [esp + 0x2c]
push str..INF
lea edx, [esp + 0x28]
push ecx
push edx
call fcn.0045d021
mov ebx, 1
mov dword [esp + 0x18], ebx
mov byte [esp + 0x1084], 8
jmp 0x43797b
lea eax, [esp + 0x2c]
push str.OEM.INF
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.0045d021
mov ebx, 2
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1084], 9
push eax
lea ecx, [esp + 0x18]
call fcn.0045cec5
test bl, 2
mov dword [esp + 0x1084], 8
je 0x4379a5
and ebx, 0xfffffffd
lea ecx, [esp + 0x10]
mov dword [esp + 0x18], ebx
call fcn.0045cdd8
test bl, 1
mov dword [esp + 0x1084], 4
je 0x4379fc
lea ecx, [esp + 0x24]
call fcn.0045cdd8
jmp 0x4379fc
lea edx, [esp + 0x2c]
push str.OTHER.INF
lea eax, [esp + 0x14]
push edx
push eax
call fcn.0045d021
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x1088], 0xa
call fcn.0045cec5
lea ecx, [esp + 0x10]
mov byte [esp + 0x1084], 4
call fcn.0045cdd8
mov esi, 5
push 0xa
lea ecx, [esp + 0x60]
call fcn.0045c599
lea ecx, [esp + 0x14]
mov byte [esp + 0x1084], 0xb
push ecx
lea ecx, [esp + 0x60]
call fcn.004013a0
mov eax, dword [esp + 0x60]
mov byte [esp + 0x1084], 0xc
test eax, eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x38], eax
je 0x437b50
mov bl, 0xd
lea edx, [esp + 0x38]
lea eax, [esp + 0x10]
push edx
push eax
lea ecx, [esp + 0x64]
call fcn.00401310
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x1088], bl
call fcn.0045cec5
lea ecx, [esp + 0x10]
mov byte [esp + 0x1084], 0xc
call fcn.0045cdd8
mov ecx, dword [esp + 0x14]
push ecx
lea ecx, [esp + 0x58c]
call fcn.004129c0
lea ecx, [esp + 0x588]
call fcn.00412f30
test eax, eax
jne 0x437a96
cmp dword [ebp + 8], esi
jne 0x437ac2
mov edi, dword [esp + 0x108c]
lea ecx, [esp + 0x7c]
push ecx
mov ecx, edi
mov edx, dword [edi]
mov eax, dword [edx - 8]
push eax
call fcn.0045d1bc
push eax
lea ecx, [esp + 0x590]
call fcn.00413ed0
test eax, eax
jne 0x437ada
jmp 0x437ac9
mov edi, dword [esp + 0x108c]
mov eax, dword [esp + 0x38]
test eax, eax
je 0x437b57
jmp 0x437a3b
lea edx, [esp + 0x7c]
lea ecx, [esp + 0x28]
push edx
call fcn.0045cf15
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
call fcn.0045cec5
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x24]
call fcn.0045cec5
sub esp, 8
lea edx, [esp + 0x24]
mov esi, esp
mov dword [esp + 0x18], esp
push edx
mov ecx, esi
mov dword [esp + 0x1c], esi
call fcn.0045cb4d
lea eax, [esp + 0x28]
lea ecx, [esi + 4]
push eax
mov byte [esp + 0x1090], 0xe
call fcn.0045cb4d
mov ecx, dword [esp + 0x1098]
mov byte [esp + 0x108c], 0xc
call fcn.004397e0
mov ebx, 1
jmp 0x437ee7
mov edi, dword [esp + 0x108c]
mov eax, dword [ebp + 8]
cmp eax, 0xb
je 0x437b68
cmp eax, 0xc
jne 0x437d56
lea ecx, [esp + 0x7c]
push 0
push ecx
call fcn.00448d90
add esp, 8
lea ecx, [esp + 0x34]
push str..INF
call fcn.0045ce46
mov esi, eax
lea edx, [esp + 0x7c]
lea ecx, [esp + 0x24]
push edx
mov byte [esp + 0x1088], 0xf
call fcn.0045ce46
push esi
push eax
lea eax, [esp + 0x18]
mov bl, 0x10
push eax
mov byte [esp + 0x1090], bl
call fcn.0045cfbb
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x1088], 0x11
call fcn.0045cec5
lea ecx, [esp + 0x10]
mov byte [esp + 0x1084], bl
call fcn.0045cdd8
lea ecx, [esp + 0x24]
mov byte [esp + 0x1084], 0xf
call fcn.0045cdd8
lea ecx, [esp + 0x34]
mov byte [esp + 0x1084], 0xc
call fcn.0045cdd8
push 0xa
lea ecx, [esp + 0x40]
call fcn.0045c599
lea ecx, [esp + 0x14]
mov byte [esp + 0x1084], 0x12
push ecx
lea ecx, [esp + 0x40]
call fcn.004013a0
mov eax, dword [esp + 0x40]
mov bl, 0x13
test eax, eax
mov byte [esp + 0x1084], bl
mov dword [esp + 0x58], eax
mov dword [esp + 0x18], eax
je 0x437d39
lea edx, [esp + 0x18]
lea eax, [esp + 0x10]
push edx
push eax
lea ecx, [esp + 0x44]
call fcn.00401310
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x1088], 0x14
call fcn.0045cec5
lea ecx, [esp + 0x10]
mov byte [esp + 0x1084], bl
call fcn.0045cdd8
mov ecx, dword [esp + 0x14]
push ecx
lea ecx, [esp + 0x58c]
call fcn.004129c0
lea ecx, [esp + 0x588]
call fcn.00412f30
test eax, eax
jne 0x437c90
cmp dword [ebp + 8], 5
jne 0x437cb6
mov edx, dword [edi]
lea ecx, [esp + 0x180]
push ecx
mov ecx, edi
mov eax, dword [edx - 8]
push eax
call fcn.0045d1bc
push eax
lea ecx, [esp + 0x590]
call fcn.00413ed0
test eax, eax
jne 0x437cc3
mov eax, dword [esp + 0x18]
test eax, eax
je 0x437d39
jmp 0x437c34
lea edx, [esp + 0x180]
lea ecx, [esp + 0x28]
push edx
call fcn.0045cf15
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
call fcn.0045cec5
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x24]
call fcn.0045cec5
sub esp, 8
lea edx, [esp + 0x24]
mov esi, esp
mov dword [esp + 0x18], esp
push edx
mov ecx, esi
mov dword [esp + 0x1c], esi
call fcn.0045cb4d
lea eax, [esp + 0x28]
lea ecx, [esi + 4]
push eax
mov byte [esp + 0x1090], 0x15
call fcn.0045cb4d
mov ecx, dword [esp + 0x1098]
mov byte [esp + 0x108c], bl
call fcn.004397e0
mov dword [esp + 0x30], 1
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1084], 0xc
call fcn.0045c60d
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x437ee3
mov eax, dword [ebp + 4]
test eax, eax
jne 0x437ee3
lea ecx, [esp + 0x2c]
push str..INF
lea edx, [esp + 0x14]
push ecx
push edx
call fcn.0045d021
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x1088], 0x16
call fcn.0045cec5
lea ecx, [esp + 0x10]
mov byte [esp + 0x1084], 0xc
call fcn.0045cdd8
push 0xa
lea ecx, [esp + 0x40]
call fcn.0045c599
lea eax, [esp + 0x14]
lea ecx, [esp + 0x3c]
push eax
mov byte [esp + 0x1088], 0x17
call fcn.004013a0
mov eax, dword [esp + 0x40]
mov bl, 0x18
test eax, eax
mov byte [esp + 0x1084], bl
mov dword [esp + 0x58], eax
mov dword [esp + 0x18], eax
je 0x437ed2
lea ecx, [esp + 0x18]
lea edx, [esp + 0x10]
push ecx
push edx
lea ecx, [esp + 0x44]
call fcn.00401310
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x1088], 0x19
call fcn.0045cec5
lea ecx, [esp + 0x10]
mov byte [esp + 0x1084], bl
call fcn.0045cdd8
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x588]
push eax
call fcn.004129c0
lea ecx, [esp + 0x588]
call fcn.00412f30
test eax, eax
je 0x437ec6
mov ecx, dword [edi]
lea edx, [esp + 0x7c]
push edx
mov eax, dword [ecx - 8]
mov ecx, edi
push eax
call fcn.0045d1bc
push eax
lea ecx, [esp + 0x590]
call fcn.00413ed0
test eax, eax
je 0x437ec6
lea eax, [esp + 0x7c]
lea ecx, [esp + 0x28]
push eax
call fcn.0045cf15
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x20]
call fcn.0045cec5
lea edx, [esp + 0x28]
lea ecx, [esp + 0x20]
push edx
call fcn.0045cec5
sub esp, 8
lea eax, [esp + 0x24]
mov esi, esp
mov dword [esp + 0x2c], esp
push eax
mov ecx, esi
mov dword [esp + 0x30], esi
call fcn.0045cb4d
lea ecx, [esp + 0x28]
mov byte [esp + 0x108c], 0x1a
push ecx
lea ecx, [esi + 4]
call fcn.0045cb4d
mov ecx, dword [esp + 0x1098]
mov byte [esp + 0x108c], bl
call fcn.004397e0
mov dword [esp + 0x30], 1
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x437dd6
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1084], 0xc
call fcn.0045c60d
mov ebx, dword [esp + 0x30]
call fcn.004318b0
test eax, eax
je 0x437f83
push ebx
lea edx, [esp + 0x80]
push str.CPrepareUninstall_::_FindDeviceINFFile_:_bRetVal___d_n
push edx
call fcn.0044cb10
mov edi, str.EXIT:
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x284]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x284]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x7c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x284]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00431840
mov ecx, eax
call fcn.00431c70
call fcn.00431840
mov ecx, eax
call fcn.004318f0
lea ecx, [esp + 0x5c]
mov byte [esp + 0x1084], 4
call fcn.0045c60d
lea ecx, [esp + 0x588]
mov byte [esp + 0x1084], 3
call fcn.00412660
lea ecx, [esp + 0x20]
mov byte [esp + 0x1084], 0x1b
call fcn.0045cdd8
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1084], 2
call fcn.0045cdd8
lea ecx, [esp + 0x28]
mov byte [esp + 0x1084], 1
call fcn.0045cdd8
lea ecx, [esp + 0x14]
mov byte [esp + 0x1084], 0
call fcn.0045cdd8
lea ecx, [esp + 0x2c]
mov dword [esp + 0x1084], 0xffffffff
call fcn.0045cdd8
mov ecx, dword [esp + 0x107c]
pop edi
pop esi
mov eax, ebx
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x1078
ret 8