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

Disassembly:
push 0xffffffffffffffff
push 0x46dae7
mov eax, dword fs:[0]
push eax
sub esp, 0x584
mov eax, dword [0x487fb0]
xor eax, esp
mov dword [esp + 0x580], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x487fb0]
xor eax, esp
push eax
lea eax, [esp + 0x598]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [esp + 0xfc]
call fcn.004186d2
xor esi, esi
push 0x54
lea eax, [esp + 0x24]
push esi
mov dword [esp + 0x5a8], esi
push eax
mov dword [esp + 0x28], esi
call fcn.00451da0
add esp, 0xc
push 1
call fcn.0040d110
push edi
call fcn.0040ee70
test eax, eax
je 0x40c22c
push 0x208
lea ecx, [esp + 0x188]
push esi
push ecx
call fcn.00451da0
add esp, 0xc
push 0x208
lea edx, [esp + 0x390]
push esi
push edx
call fcn.00451da0
add esp, 0xc
lea eax, [esp + 0x38c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, dword [edi + 4]
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x184]
lea eax, [esp + 0x38c]
push ecx
mov dword [esp + 0x20], 0x58
mov dword [esp + 0x2c], str..ini
mov dword [esp + 0x38], 1
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], 0x208
mov dword [esp + 0x4c], eax
mov dword [esp + 0x54], 0x806
mov dword [esp + 0x5c], 0x47f254
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameW]
test eax, eax
je 0x40c22c
push 1
lea ebp, [edi + 0x8c0]
push ebp
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x40b90b
push esi
push esi
push 0xffffffffffffffff
push ebp
push 1
push esi
call ebx
mov dword [esp + 0x14], eax
test eax, eax
je 0x40b90b
lea esi, [eax + 2]
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041005d
mov esi, eax
add esp, 4
test esi, esi
je 0x40b90b
mov eax, dword [esp + 0x14]
add eax, 2
push eax
push 0
push esi
call fcn.00451da0
mov eax, dword [esp + 0x20]
add esp, 0xc
push eax
push esi
push 0xffffffffffffffff
push ebp
push 1
push 0
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea ecx, [esp + 0x184]
push ecx
push esi
push str.Vendor
push str.Bios
call ebp
lea eax, [edi + 0x900]
push 1
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x40b99f
push eax
push eax
push 0xffffffffffffffff
lea eax, [edi + 0x900]
push eax
push 1
push esi
call ebx
mov dword [esp + 0x14], eax
test eax, eax
je 0x40b99f
lea esi, [eax + 2]
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041005d
mov esi, eax
add esp, 4
test esi, esi
je 0x40b99f
mov eax, dword [esp + 0x14]
add eax, 2
push eax
push 0
push esi
call fcn.00451da0
mov eax, dword [esp + 0x20]
add esp, 0xc
push eax
push esi
push 0xffffffffffffffff
lea eax, [edi + 0x900]
push eax
push 1
push 0
call ebx
lea ecx, [esp + 0x184]
push ecx
push esi
push str.Version
push str.Bios
call ebp
lea eax, [edi + 0x940]
push 1
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x40ba2d
push eax
push eax
push 0xffffffffffffffff
lea eax, [edi + 0x940]
push eax
push 1
push esi
call ebx
mov dword [esp + 0x14], eax
test eax, eax
je 0x40ba2d
lea esi, [eax + 2]
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041005d
mov esi, eax
add esp, 4
test esi, esi
je 0x40ba2d
mov eax, dword [esp + 0x14]
add eax, 2
push eax
push 0
push esi
call fcn.00451da0
mov eax, dword [esp + 0x20]
add esp, 0xc
push eax
push esi
push 0xffffffffffffffff
lea eax, [edi + 0x940]
push eax
push 1
push 0
call ebx
lea ecx, [esp + 0x184]
push ecx
push esi
push str.ReleaseDate
push str.Bios
call ebp
movzx edx, byte [edi + 0x982]
movzx eax, byte [edi + 0x981]
push edx
push eax
lea ecx, [esp + 0x394]
push 0x47db58
push ecx
mov edx, 0x208
call fcn.00401330
add esp, 0x10
lea edx, [esp + 0x184]
push edx
lea eax, [esp + 0x390]
push eax
push str.SystemBiosRelease
push str.Bios
call ebp
mov eax, dword [edi + 0x850]
mov edx, dword [eax + 0x690]
lea ecx, [eax + 0x690]
mov eax, dword [edx + 4]
call eax
test eax, eax
jl 0x40bb0f
mov ecx, dword [edi + 0x850]
mov edx, dword [ecx + 0x658]
add ecx, 0x658
push eax
mov eax, dword [edx]
call eax
mov edx, dword [eax]
mov edx, dword [edx + 0x38]
lea ecx, [esp + 0x78]
push ecx
mov ecx, eax
call edx
push eax
lea ecx, [esp + 0x100]
mov byte [esp + 0x5a4], 1
call fcn.00418854
lea ecx, [esp + 0x78]
mov byte [esp + 0x5a0], 0
call fcn.004186f7
lea eax, [esp + 0x184]
push eax
lea ecx, [esp + 0x100]
call fcn.004185bd
push eax
push str.OEMString
push 0x47f2d8
call ebp
mov ecx, dword [edi + 0x814]
mov edx, dword [ecx]
mov edx, dword [edx + 0x38]
lea eax, [esp + 0x78]
push eax
call edx
push eax
lea ecx, [esp + 0x100]
mov byte [esp + 0x5a4], 2
call fcn.00418854
lea ecx, [esp + 0x78]
mov byte [esp + 0x5a0], 0
call fcn.004186f7
lea eax, [esp + 0x184]
push eax
lea ecx, [esp + 0x100]
call fcn.004185bd
push eax
push str.Manufacturer
push str.Memory
call ebp
mov ecx, dword [edi + 0x818]
mov edx, dword [ecx]
mov edx, dword [edx + 0x38]
lea eax, [esp + 0x78]
push eax
call edx
push eax
lea ecx, [esp + 0x100]
mov byte [esp + 0x5a4], 3
call fcn.00418854
lea ecx, [esp + 0x78]
mov byte [esp + 0x5a0], 0
call fcn.004186f7
lea eax, [esp + 0x184]
push eax
lea ecx, [esp + 0x100]
call fcn.004185bd
push eax
push str.SerialNumber
push str.Memory
call ebp
mov ecx, dword [edi + 0x81c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x38]
lea eax, [esp + 0x78]
push eax
call edx
push eax
lea ecx, [esp + 0x100]
mov byte [esp + 0x5a4], 4
call fcn.00418854
lea ecx, [esp + 0x78]
mov byte [esp + 0x5a0], 0
call fcn.004186f7
lea eax, [esp + 0x184]
push eax
lea ecx, [esp + 0x100]
call fcn.004185bd
push eax
push str.PartNumber
push str.Memory
call ebp
lea eax, [edi + 0xa37]
push 1
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x40bc93
push eax
push eax
push 0xffffffffffffffff
lea eax, [edi + 0xa37]
push eax
push 1
push esi
call ebx
mov dword [esp + 0x14], eax
test eax, eax
je 0x40bc93
lea esi, [eax + 2]
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041005d
mov esi, eax
add esp, 4
test esi, esi
je 0x40bc93
mov eax, dword [esp + 0x14]
add eax, 2
push eax
push 0
push esi
call fcn.00451da0
mov eax, dword [esp + 0x20]
add esp, 0xc
push eax
push esi
push 0xffffffffffffffff
lea eax, [edi + 0xa37]
push eax
push 1
push 0
call ebx
lea ecx, [esp + 0x184]
push ecx
push esi
push str.Manufacturer
push str.Board
call ebp
lea eax, [edi + 0xa77]
push 1
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x40bd21
push eax
push eax
push 0xffffffffffffffff
lea eax, [edi + 0xa77]
push eax
push 1
push esi
call ebx
mov dword [esp + 0x14], eax
test eax, eax
je 0x40bd21
lea esi, [eax + 2]
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041005d
mov esi, eax
add esp, 4
test esi, esi
je 0x40bd21
mov eax, dword [esp + 0x14]
add eax, 2
push eax
push 0
push esi
call fcn.00451da0
mov eax, dword [esp + 0x20]
add esp, 0xc
push eax
push esi
push 0xffffffffffffffff
lea eax, [edi + 0xa77]
push eax
push 1
push 0
call ebx
lea ecx, [esp + 0x184]
push ecx
push esi
push str.Product
push str.Board
call ebp
lea eax, [edi + 0x997]
push 1
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x40bdaf
push eax
push eax
push 0xffffffffffffffff
lea eax, [edi + 0x997]
push eax
push 1
push esi
call ebx
mov dword [esp + 0x14], eax
test eax, eax
je 0x40bdaf
lea esi, [eax + 2]
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041005d
mov esi, eax
add esp, 4
test esi, esi
je 0x40bdaf
mov eax, dword [esp + 0x14]
add eax, 2
push eax
push 0
push esi
call fcn.00451da0
mov eax, dword [esp + 0x20]
add esp, 0xc
push eax
push esi
push 0xffffffffffffffff
lea eax, [edi + 0x997]
push eax
push 1
push 0
call ebx
lea ecx, [esp + 0x184]
push ecx
push esi
push str.Manufacturer
push str.System
call ebp
lea eax, [edi + 0x9d7]
push 1
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x40be3d
push eax
push eax
push 0xffffffffffffffff
lea eax, [edi + 0x9d7]
push eax
push 1
push esi
call ebx
mov dword [esp + 0x14], eax
test eax, eax
je 0x40be3d
lea esi, [eax + 2]
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041005d
mov esi, eax
add esp, 4
test esi, esi
je 0x40be3d
mov eax, dword [esp + 0x14]
add eax, 2
push eax
push 0
push esi
call fcn.00451da0
mov eax, dword [esp + 0x20]
add esp, 0xc
push eax
push esi
push 0xffffffffffffffff
lea eax, [edi + 0x9d7]
push eax
push 1
push 0
call ebx
lea ecx, [esp + 0x184]
push ecx
push esi
push 0x47f36c
push str.System
call ebp
lea esi, [edi + 0xa17]
call fcn.00403dd0
push 1
push eax
mov dword [esp + 0x20], eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x40bed0
mov edx, dword [esp + 0x18]
push eax
push eax
push 0xffffffffffffffff
push edx
push 1
push eax
call ebx
mov dword [esp + 0x14], eax
test eax, eax
je 0x40bed0
lea esi, [eax + 2]
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041005d
mov esi, eax
add esp, 4
test esi, esi
je 0x40bed0
mov eax, dword [esp + 0x14]
add eax, 2
push eax
push 0
push esi
call fcn.00451da0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
add esp, 0xc
push eax
push esi
push 0xffffffffffffffff
push ecx
push 1
push 0
call ebx
lea edx, [esp + 0x184]
push edx
push esi
push str.Uuid
push str.System
call ebp
lea eax, [edi + 0xc50]
push 1
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x40bf5e
push eax
push eax
push 0xffffffffffffffff
lea eax, [edi + 0xc50]
push eax
push 1
push esi
call ebx
mov dword [esp + 0x18], eax
test eax, eax
je 0x40bf5e
lea esi, [eax + 2]
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041005d
mov esi, eax
add esp, 4
test esi, esi
je 0x40bf5e
mov eax, dword [esp + 0x18]
add eax, 2
push eax
push 0
push esi
call fcn.00451da0
mov eax, dword [esp + 0x24]
add esp, 0xc
push eax
push esi
push 0xffffffffffffffff
lea eax, [edi + 0xc50]
push eax
push 1
push 0
call ebx
lea ecx, [esp + 0x184]
push ecx
push esi
push str.ProcessorManufacturer
push 0x47f3bc
call ebp
lea eax, [edi + 0xc10]
push 1
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x40bfec
push eax
push eax
push 0xffffffffffffffff
lea eax, [edi + 0xc10]
push eax
push 1
push esi
call ebx
mov dword [esp + 0x18], eax
test eax, eax
je 0x40bfec
lea esi, [eax + 2]
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041005d
mov esi, eax
add esp, 4
test esi, esi
je 0x40bfec
mov eax, dword [esp + 0x18]
add eax, 2
push eax
push 0
push esi
call fcn.00451da0
mov eax, dword [esp + 0x24]
add esp, 0xc
push eax
push esi
push 0xffffffffffffffff
lea eax, [edi + 0xc10]
push eax
push 1
push 0
call ebx
lea ecx, [esp + 0x184]
push ecx
push esi
push str.ProcessorVersion
push 0x47f3bc
call ebp
mov edx, dword [edi + 0xc95]
mov eax, dword [edi + 0xc91]
push edx
push eax
lea ecx, [esp + 0x394]
push 0x47f3e8
push ecx
mov edx, 0x208
call fcn.00401330
add esp, 0x10
lea edx, [esp + 0x184]
push edx
lea eax, [esp + 0x390]
push eax
push str.CPUID
push 0x47f3bc
call ebp
mov ecx, dword [edi + 0x19e1]
push ecx
lea edx, [esp + 0x390]
push str._08X
push edx
mov edx, 0x208
call fcn.00401330
add esp, 0xc
lea eax, [esp + 0x184]
push eax
lea ecx, [esp + 0x390]
push ecx
push str.SerialNumber
push str.Partition
call ebp
lea eax, [edi + 0x1c7a]
push 1
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x40c0fb
push eax
push eax
push 0xffffffffffffffff
lea eax, [edi + 0x1c7a]
push eax
push 1
push esi
call ebx
mov dword [esp + 0x18], eax
test eax, eax
je 0x40c0fb
lea esi, [eax + 2]
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041005d
mov esi, eax
add esp, 4
test esi, esi
je 0x40c0fb
mov eax, dword [esp + 0x18]
add eax, 2
push eax
push 0
push esi
call fcn.00451da0
mov eax, dword [esp + 0x24]
add esp, 0xc
push eax
push esi
push 0xffffffffffffffff
lea eax, [edi + 0x1c7a]
push eax
push 1
push 0
call ebx
lea ecx, [esp + 0x184]
push ecx
push esi
push str.FirmwareVersion
push str.HardDisk
call ebp
lea eax, [edi + 0x1c83]
push 1
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x40c189
push eax
push eax
push 0xffffffffffffffff
lea eax, [edi + 0x1c83]
push eax
push 1
push esi
call ebx
mov dword [esp + 0x18], eax
test eax, eax
je 0x40c189
lea esi, [eax + 2]
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041005d
mov esi, eax
add esp, 4
test esi, esi
je 0x40c189
mov eax, dword [esp + 0x18]
add eax, 2
push eax
push 0
push esi
call fcn.00451da0
mov eax, dword [esp + 0x24]
add esp, 0xc
push eax
push esi
push 0xffffffffffffffff
lea eax, [edi + 0x1c83]
push eax
push 1
push 0
call ebx
lea ecx, [esp + 0x184]
push ecx
push esi
push str.ModelNumber
push str.HardDisk
call ebp
lea eax, [edi + 0x1c65]
push 1
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x40c217
push eax
push eax
push 0xffffffffffffffff
lea eax, [edi + 0x1c65]
push eax
push 1
push esi
call ebx
mov dword [esp + 0x18], eax
test eax, eax
je 0x40c217
lea esi, [eax + 2]
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041005d
mov esi, eax
add esp, 4
test esi, esi
je 0x40c217
mov eax, dword [esp + 0x18]
add eax, 2
push eax
push 0
push esi
call fcn.00451da0
mov eax, dword [esp + 0x24]
add esp, 0xc
push eax
push esi
push 0xffffffffffffffff
lea eax, [edi + 0x1c65]
push eax
push 1
push 0
call ebx
lea ecx, [esp + 0x184]
push ecx
push esi
push str.SerialNumber
push str.HardDisk
call ebp
push 0
call fcn.0040d110
lea ecx, [esp + 0xfc]
mov dword [esp + 0x5a0], 0xffffffff
call fcn.004186f7
mov ecx, dword [esp + 0x598]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x580]
xor ecx, esp
call fcn.0044f3b0
add esp, 0x590
ret