Function at 0x42d7d0
Capabilities:
Get common file path
Get system information on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54894c
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x450
mov eax, dword [0x5903c4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebx + 8]
xorps xmm0, xmm0
push 0x11c
mov dword [ebp - 0x388], eax
lea eax, [ebp - 0x378]
push 0
push eax
movups xmmword [ebp - 0x45c], xmm0
mov dword [ebp - 0x43c], 0
movups xmmword [ebp - 0x44c], xmm0
call fcn.0051df40
add esp, 0xc
mov dword [ebp - 0x378], 0x11c
push 0x576710
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
mov ecx, edi
mov dword [ebp - 0x380], edi
call fcn.0042d4c0
push str.GetVersionExW
push edi
mov dword [ebp - 0x37c], eax
call eax
lea ecx, [ebp - 0x378]
push ecx
call eax
test eax, eax
je 0x42df88
push str.GetNativeSystemInfo
push edi
call dword [ebp - 0x37c]
test eax, eax
je 0x42d8ab
lea ecx, [ebp - 0x45c]
push ecx
call eax
jmp 0x42d8b8
lea eax, [ebp - 0x45c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [ebp - 0x368], 2
mov ecx, dword [ebp - 0x374]
mov eax, dword [ebp - 0x370]
mov dword [esi + 0x3c], ecx
mov dword [esi + 0x40], eax
jne 0x42df81
cmp ecx, 4
jbe 0x42df81
cmp ecx, 6
jb 0x42d905
mov ax, word [ebp - 0x45c]
cmp ax, 9
jne 0x42d8fa
mov dword [esi], 1
jmp 0x42d905
test ax, ax
jne 0x42d905
mov dword [esi], 0
sub esp, 8
lea ecx, [ebp - 0x438]
call fcn.00415830
mov edx, str.Microsoft
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x428]
call fcn.0042fb30
cmp dword [ebp - 0x374], 6
jne case.0x42db95.5
cmp dword [ebp - 0x370], 0
jne 0x42d971
cmp byte [ebp - 0x25e], 1
lea ecx, [ebp - 0x428]
mov edx, str.Windows_Vista
je 0x42d959
mov edx, str.Windows_Server_2008
call fcn.0042f7d0
cmp dword [esi], 0
mov eax, 8
mov ecx, 0xf
cmovne eax, ecx
mov dword [esi + 4], eax
cmp dword [ebp - 0x370], 1
jne 0x42d9ab
cmp byte [ebp - 0x25e], 1
lea ecx, [ebp - 0x428]
mov edx, str.Windows_7
je 0x42d993
mov edx, str.Windows_Server_2008_R2
call fcn.0042f7d0
cmp dword [esi], 0
mov eax, 9
mov ecx, 0x10
cmovne eax, ecx
mov dword [esi + 4], eax
cmp dword [ebp - 0x370], 2
jne 0x42db1f
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x599de0]
cmp eax, dword [ecx + 4]
jle 0x42da19
push 0x599de0
call fcn.005199bb
add esp, 4
cmp dword [0x599de0], 0xffffffff
jne 0x42da19
xor eax, eax
mov dword [0x599dd8], 7
push 0x54c710
mov dword [0x599dd4], 0
mov word [0x599dc4], ax
call fcn.00519e85
add esp, 4
push 0x599de0
call fcn.0051997c
add esp, 4
mov edx, dword [0x599dd4]
mov edi, 0x599dc4
test edx, edx
jne 0x42da9d
push 0x104
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x240]
call fcn.0040eb20
push str.kernel32.dll
lea ecx, [ebp - 0x240]
mov byte [ebp - 4], 1
call fcn.0040ea40
push ecx
lea edx, [ebp - 0x240]
lea ecx, [ebp - 0x258]
call fcn.0042d720
add esp, 4
mov ecx, edi
push eax
call fcn.0041f410
lea ecx, [ebp - 0x258]
call fcn.0040eae0
lea ecx, [ebp - 0x240]
mov byte [ebp - 4], 0
call fcn.0040eae0
mov edx, dword [0x599dd4]
cmp edx, 4
jbe 0x42dae8
mov eax, 4
cmp edx, eax
push eax
cmovae edx, eax
cmp dword [0x599dd8], 8
push str.10.0
cmovae edi, dword [0x599dc4]
mov ecx, edi
call fcn.00415dc0
add esp, 8
test eax, eax
jne 0x42dae8
mov edx, str.Windows_10
lea ecx, [ebp - 0x428]
call fcn.0042f7d0
mov eax, 0xc
lea ecx, [eax + 7]
jmp 0x42db10
cmp byte [ebp - 0x25e], 1
lea ecx, [ebp - 0x428]
mov edx, str.Windows_8
je 0x42db01
mov edx, str.Windows_Server_2012
call fcn.0042f7d0
mov eax, 0xa
mov ecx, 0x11
cmp dword [esi], 0
mov edi, dword [ebp - 0x380]
cmovne eax, ecx
mov dword [esi + 4], eax
cmp dword [ebp - 0x370], 3
jne 0x42db59
cmp byte [ebp - 0x25e], 1
lea ecx, [ebp - 0x428]
mov edx, str.Windows_8.1
je 0x42db41
mov edx, str.Windows_Server_2012_R2
call fcn.0042f7d0
cmp dword [esi], 0
mov eax, 0xb
mov ecx, 0x12
cmovne eax, ecx
mov dword [esi + 4], eax
push str.GetProductInfo
push edi
call dword [ebp - 0x37c]
lea ecx, [ebp - 0x384]
push ecx
push 0
push 0
push dword [ebp - 0x370]
push dword [ebp - 0x374]
call eax
mov eax, dword [ebp - 0x384]
dec eax
cmp eax, 0x2f
ja case.0x42db95.5
movzx eax, byte [eax + 0x42dff4]
jmp dword [eax*4 + 0x42dfac]
mov edx, str.Ultimate_Edition
jmp 0x42dc11
mov edx, str.Professional
jmp 0x42dc11
mov edx, str.Home_Premium_Edition
jmp 0x42dc11
mov edx, str.Home_Basic_Edition
jmp 0x42dc11
mov edx, str.Enterprise_Edition
jmp 0x42dc11
mov edx, str.Business_Edition
jmp 0x42dc11
mov edx, str.Starter_Edition
jmp 0x42dc11
mov edx, str.Cluster_Server_Edition
jmp 0x42dc11
mov edx, str.Datacenter_Edition
jmp 0x42dc11
mov edx, str.Datacenter_Edition__core_installation_
jmp 0x42dc11
mov edx, str.Enterprise_Edition__core_installation_
jmp 0x42dc11
mov edx, str.Enterprise_Edition_for_Itanium_based_Systems
jmp 0x42dc11
mov edx, str.Small_Business_Server
jmp 0x42dc11
mov edx, str.Small_Business_Server_Premium_Edition
jmp 0x42dc11
mov edx, str.Standard_Edition
jmp 0x42dc11
mov edx, str.Standard_Edition__core_installation_
jmp 0x42dc11
mov edx, str.Web_Server_Edition
lea ecx, [ebp - 0x428]
call fcn.0042f7d0
cmp dword [ebp - 0x374], 5
jne 0x42de0c
mov eax, dword [ebp - 0x370]
cmp eax, 2
jne 0x42dd6b
push 0x59
mov dword [esi + 4], 7
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x42dc52
mov edx, str.Windows_Server_2003_R2_
jmp 0x42dc9a
mov eax, dword [ebp - 0x260]
test eax, 0x2000
je 0x42dc66
mov edx, str.Windows_Storage_Server_2003
jmp 0x42dc9a
test eax, 0x8000
je 0x42dc74
mov edx, str.Windows_Home_Server
jmp 0x42dc9a
cmp byte [ebp - 0x25e], 1
jne 0x42dc95
cmp word [ebp - 0x45c], 9
jne 0x42dc95
mov dword [esi + 4], 0xd
mov edx, str.Windows_XP_Professional_x64_Edition
jmp 0x42dc9a
mov edx, str.Windows_Server_2003_
lea ecx, [ebp - 0x428]
call fcn.0042f7d0
cmp byte [ebp - 0x25e], 1
je 0x42dd58
mov ax, word [ebp - 0x45c]
cmp ax, 6
jne 0x42dce2
mov eax, dword [ebp - 0x260]
mov dword [esi + 4], 0xe
test al, al
jns 0x42dcd7
mov edx, str.Datacenter_Edition_for_Itanium_based_Systems
jmp 0x42dd4d
test al, 2
je 0x42dd58
mov edx, str.Enterprise_Edition_for_Itanium_based_Systems
jmp 0x42dd4d
cmp ax, 9
mov eax, dword [ebp - 0x260]
jne 0x42dd18
mov dword [esi + 4], 0xe
test al, al
jns 0x42dd00
mov edx, str.Datacenter_x64_Edition
jmp 0x42dd4d
lea ecx, [ebp - 0x428]
test al, 2
je 0x42dd11
mov edx, str.Enterprise_x64_Edition
jmp 0x42dd53
mov edx, str.Standard_x64_Edition
jmp 0x42dd53
test eax, 0x4000
je 0x42dd26
mov edx, str.Compute_Cluster_Edition
jmp 0x42dd4d
test al, al
jns 0x42dd31
mov edx, str.Datacenter_Edition
jmp 0x42dd4d
test al, 2
je 0x42dd3c
mov edx, str.Enterprise_Edition
jmp 0x42dd4d
mov edx, str.Web_Edition
test eax, 0x400
jne 0x42dd4d
mov edx, str.Standard_Edition
lea ecx, [ebp - 0x428]
call fcn.0042f7d0
cmp dword [ebp - 0x374], 5
jne 0x42de0c
mov eax, dword [ebp - 0x370]
cmp eax, 1
jne 0x42ddb7
mov edx, str.Windows_XP
mov dword [esi + 4], 3
lea ecx, [ebp - 0x428]
call fcn.0042f7d0
test dword [ebp - 0x260], 0x200
lea ecx, [ebp - 0x428]
mov edx, str.Home_Edition
jne 0x42dda3
mov edx, str.Professional
call fcn.0042f7d0
cmp dword [ebp - 0x374], 5
jne 0x42de0c
mov eax, dword [ebp - 0x370]
test eax, eax
jne 0x42de0c
mov edx, str.Windows_2000
mov dword [esi + 4], 2
lea ecx, [ebp - 0x428]
call fcn.0042f7d0
cmp byte [ebp - 0x25e], 1
jne 0x42dde2
mov edx, str.Professional
jmp 0x42de01
mov eax, dword [ebp - 0x260]
test al, al
jns 0x42ddf3
mov edx, str.Datacenter_Server
jmp 0x42de01
mov edx, str.Advanced_Server
test al, 2
jne 0x42de01
mov edx, str.Server
lea ecx, [ebp - 0x428]
call fcn.0042f7d0
lea ecx, [ebp - 0x364]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42de15
sub ecx, edx
sar ecx, 1
je 0x42deae
cmp dword [esi + 4], 3
jne 0x42de91
lea eax, [ebp - 0x364]
push str.Service_Pack_3
push eax
call fcn.00528fe9
add esp, 8
test eax, eax
jne 0x42de51
mov dword [esi + 4], 6
jmp 0x42de91
lea eax, [ebp - 0x364]
push str.Service_Pack_2
push eax
call fcn.00528fe9
add esp, 8
test eax, eax
jne 0x42de72
mov dword [esi + 4], 5
jmp 0x42de91
lea eax, [ebp - 0x364]
push str.Service_Pack_1
push eax
call fcn.00528fe9
add esp, 8
test eax, eax
jne 0x42de91
mov dword [esi + 4], 4
mov edx, 0x575c24
lea ecx, [ebp - 0x428]
call fcn.0042f7d0
lea edx, [ebp - 0x364]
mov ecx, eax
call fcn.0042fb30
push dword [ebp - 0x36c]
mov edx, 0x576bf8
push ecx
lea ecx, [ebp - 0x428]
call fcn.0042fb30
add esp, 4
mov ecx, eax
call fcn.0042e3e0
mov edx, 0x576bf4
mov ecx, eax
call fcn.0042fb30
cmp dword [ebp - 0x374], 6
mov eax, dword [ebp - 0x36c]
mov dword [esi + 8], eax
jb 0x42df16
mov ax, word [ebp - 0x45c]
cmp ax, 9
jne 0x42df01
mov edx, str.__64_bit
jmp 0x42df0b
test ax, ax
jne 0x42df16
mov edx, str.__32_bit
lea ecx, [ebp - 0x428]
call fcn.0042f7d0
lea eax, [ebp - 0x258]
push eax
lea ecx, [ebp - 0x438]
call fcn.0042e3c0
cmp dword [eax + 0x14], 8
jb 0x42df30
mov eax, dword [eax]
push eax
push 0x104
push dword [ebp - 0x388]
call fcn.0052c3e5
add esp, 0xc
lea ecx, [ebp - 0x258]
call fcn.0040eae0
lea ecx, [ebp - 0x3d0]
call fcn.0040ebe0
lea eax, [ebp - 0x3d0]
mov dword [ebp - 4], 2
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.004cddbe
add esp, 4
mov eax, 1
jmp 0x42df8a
mov dword [esi + 4], 1
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00519876
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8