Function at 0x437639
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x5706b0]
xor eax, ebp
mov dword [ebp + 0x18c], eax
mov eax, dword [ebp + 0x198]
push ebx
push esi
push edi
push eax
mov esi, ecx
mov ecx, dword [ebp + 0x19c]
push str._bInitDriver__path___s_n
push esi
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x80], ecx
call fcn.00436ebe
add esp, 0xc
lea ebx, [esi + 4]
push ebx
mov edi, 0x200
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push ebx
push str._bInitDriver__GetCurrentDirectory___s_n
push esi
call fcn.00436ebe
add esp, 0xc
push edi
lea eax, [ebp - 0x74]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x74]
push eax
push str._bInitDriver__GetModuleFileName___s_n
push esi
call fcn.00436ebe
add esp, 0xc
mov ecx, esi
call fcn.00436f41
lea ebx, [esi + 0xb6c]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebx], 0
push str.cpuz143
push 0
mov ecx, esi
call fcn.00437534
mov dword [ebx], eax
test eax, eax
jne 0x4376f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x516434
push esi
call fcn.00436ebe
add esp, 0xc
cmp dword [ebp - 0x7c], 0
mov eax, dword [ebp + 0x1a0]
mov dword [esi + 0x20c], eax
lea eax, [esi + 0x410]
je 0x437720
push dword [ebp - 0x7c]
push edi
push eax
call fcn.004ef010
add esp, 0xc
jmp 0x437728
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push str.cpuz143
mov ebx, 0x100
lea eax, [esi + 0xa10]
push ebx
push eax
call fcn.004ef010
mov eax, dword [esi + 0xb50]
add esp, 0xc
dec eax
je 0x437830
dec eax
je 0x437760
mov dword [ebp - 0x78], 0x5002
xor edi, edi
jmp 0x437885
push str.cpuz143
lea eax, [esi + 0xb10]
push 0x40
push eax
call fcn.004ef010
add esp, 0xc
cmp dword [esi + 0xb5c], 0
je 0x437786
push str._x64.sys
jmp 0x43779b
cmp dword [esi + 0xb60], 0
je 0x437796
push str._ia64.sys
jmp 0x43779b
push str._x32.sys
lea eax, [esi + 0xa10]
push ebx
push eax
call fcn.00450c1b
add esp, 0xc
cmp dword [esi + 0x20c], 0
lea eax, [esi + 0x410]
push eax
je 0x4377ef
push str._scpuz143_
lea eax, [ebp - 0x74]
push edi
push eax
call fcn.00450b87
lea eax, [ebp - 0x74]
push eax
push str._bInitDriver__Extract_dir___s_n
push esi
call fcn.00436ebe
lea eax, [ebp - 0x74]
push eax
lea ebx, [esi + 0x610]
push edi
push ebx
call fcn.004ef010
add esp, 0x28
jmp 0x4377ff
lea ebx, [esi + 0x610]
push edi
push ebx
call fcn.004ef010
add esp, 0xc
lea eax, [esi + 0xa10]
push eax
push ebx
push str._bInitDriver__m_szPath_2_s__m_szFilename_s_n
push esi
call fcn.00436ebe
add esp, 0x10
push 0x3a98
lea eax, [ebp - 0x78]
push eax
mov ecx, esi
call fcn.0043713d
mov ecx, esi
mov edi, eax
call fcn.004371f8
jmp 0x437885
lea eax, [esi + 0x410]
push eax
lea eax, [esi + 0x610]
push edi
push eax
call fcn.004ef010
push str.cpuz.vxd
push ebx
lea edi, [esi + 0xa10]
push edi
call fcn.004ef010
push str.cpuz
lea eax, [esi + 0xb10]
push 0x40
push eax
call fcn.004ef010
push edi
push str._bInitDriver__m_szFilename___s_n
push esi
call fcn.00436ebe
add esp, 0x30
lea eax, [ebp - 0x78]
push eax
mov ecx, esi
call fcn.00437dce
mov edi, eax
push dword [ebp - 0x78]
push str._bInitDriver__bInitDriver_returned__d_n
push esi
call fcn.00436ebe
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x80]
mov dword [ecx], eax
add esp, 0xc
mov ecx, esi
call fcn.004371f8
test edi, edi
jne 0x4378b9
push edi
push 1
push 1
mov ecx, esi
call fcn.00437092
xor eax, eax
jmp 0x4378c2
and dword [esi + 0xd7c], 0
mov eax, edi
mov ecx, dword [ebp + 0x18c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004edcb6
add ebp, 0x190
leave
ret 0xc