Function at 0x5b162a0
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b1d7ff
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x81f0
call fcn.05acf3e0
mov eax, dword [0x5b920e8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
xor edi, edi
lea eax, [esi + 0x24]
mov dword [ebp - 0x8134], edi
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x8104], esi
jb 0x5b162f1
mov eax, dword [eax]
push eax
mov dword [ebp - 0x8108], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x5b1631b
push 0x13
push str.Unable_to_find_file
lea ecx, [esi + 8]
call fcn.05a01370
mov byte [esi + 4], 0
jmp 0x5b16540
push 0x2c
mov dword [ebp - 0x8110], edi
call fcn.05ac813b
add esp, 4
cmp eax, edi
je 0x5b16afe
mov dword [ebp - 0x8114], eax
mov dword [eax], eax
mov eax, dword [ebp - 0x8114]
mov dword [eax + 4], eax
mov eax, dword [ebp - 0x8114]
mov dword [eax + 8], eax
mov eax, dword [ebp - 0x8114]
mov byte [eax + 0x28], 1
mov ecx, dword [ebp - 0x8114]
mov byte [ecx + 0x29], 1
xor eax, eax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x8100]
push edx
mov edi, 0x1000
lea esi, [ebp - 0x8128]
mov dword [ebp - 0x8128], eax
mov dword [ebp - 0x8124], eax
mov dword [ebp - 0x8120], eax
mov dword [ebp - 0x8100], eax
call fcn.05a126d0
mov ecx, dword [ebp - 0x8108]
mov byte [ebp - 4], 1
mov edi, dword [ebp - 0x8124]
mov eax, dword [ebp - 0x8128]
mov esi, edi
sub esi, eax
push ecx
sar esi, 1
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
mov ebx, eax
lea edx, [esi - 2]
cmp ebx, edx
jne 0x5b16438
mov dword [ebp - 0x8100], 0
lea eax, [esi + esi]
cmp eax, esi
jbe 0x5b163f1
lea ecx, [ebp - 0x8100]
push ecx
sub eax, esi
push edi
lea ecx, [ebp - 0x8128]
call fcn.05a11a90
mov edi, dword [ebp - 0x8124]
jmp 0x5b16414
jae 0x5b16414
mov edx, dword [ebp - 0x8128]
lea esi, [edx + eax*2]
cmp esi, edi
je 0x5b16414
push 0
push edi
push esi
call fcn.05ac81c0
mov edi, esi
add esp, 0xc
mov dword [ebp - 0x8124], edi
mov eax, dword [ebp - 0x8128]
mov ecx, dword [ebp - 0x8108]
mov esi, edi
sub esi, eax
push ecx
sar esi, 1
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
mov ebx, eax
lea edx, [esi - 2]
cmp ebx, edx
je 0x5b163cd
test ebx, ebx
je 0x5b164a9
mov eax, dword [ebp - 0x8128]
xor edi, edi
mov dword [ebp - 0x8100], eax
test ebx, ebx
je 0x5b164a9
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5b16451
sub eax, edx
sar eax, 1
mov esi, eax
lea eax, [ebp - 0x8100]
push eax
lea ecx, [ebp - 0x8118]
lea edi, [edi + esi + 1]
call fcn.05a125d0
push eax
lea ecx, [ebp - 0x8130]
push ecx
lea edx, [ebp - 0x8118]
push edx
call fcn.05a12190
cmp byte [ebp - 0x812c], 0
je 0x5b164e3
mov eax, dword [ebp - 0x8100]
lea eax, [eax + esi*2 + 2]
mov dword [ebp - 0x8100], eax
cmp edi, ebx
jb 0x5b1644e
mov edx, dword [ebp - 0x8114]
mov esi, dword [edx]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ebx, dword [ebp - 0x8108]
mov dword [ebp - 0x8100], esi
cmp esi, dword [ebp - 0x8114]
je 0x5b16ad0
add esi, 0xc
cmp dword [esi + 0x14], 8
jb 0x5b1655c
mov eax, dword [esi]
jmp 0x5b1655e
mov esi, dword [ebp - 0x8104]
push 0x1d
push str.Duplicate_section_names_exist
lea ecx, [esi + 8]
call fcn.05a01370
mov eax, dword [ebp - 0x8128]
mov byte [esi + 4], 0
test eax, eax
je 0x5b1650f
push eax
call fcn.05ac7ecf
add esp, 4
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x8114]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [ebp - 0x812c]
lea esi, [ebp - 0x8118]
call fcn.05a11c80
mov ecx, dword [ebp - 0x8114]
push ecx
call fcn.05ac7ecf
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.05ac7ec0
mov esp, ebp
pop ebp
ret
mov eax, esi
push ebx
push 0x1000
lea ecx, [ebp - 0x2018]
push ecx
push 0
push str.Vendor
push eax
call edi
test eax, eax
je 0x5b169a7
cmp dword [esi + 0x14], 8
jb 0x5b16587
mov eax, dword [esi]
jmp 0x5b16589
mov eax, esi
push ebx
push 0x1000
lea edx, [ebp - 0x6018]
push edx
push 0
push str.Product
push eax
call edi
test eax, eax
je 0x5b168f7
cmp dword [esi + 0x14], 8
jb 0x5b165b2
mov eax, dword [esi]
jmp 0x5b165b4
mov eax, esi
push ebx
push 0x1000
lea ecx, [ebp - 0x8018]
push ecx
push 0
push 0x5b6b09c
push eax
call edi
test eax, eax
je 0x5b16847
cmp dword [esi + 0x14], 8
jb 0x5b165db
mov esi, dword [esi]
push ebx
push 0x1000
lea edx, [ebp - 0x4018]
push edx
push 0
push 0x5b6b0ac
push esi
call edi
test eax, eax
je 0x5b1679b
lea eax, [ebp - 0x4018]
push eax
lea ecx, [ebp - 0x8018]
push ecx
lea edx, [ebp - 0x6018]
push edx
lea eax, [ebp - 0x80c8]
push eax
lea edx, [ebp - 0x2018]
mov byte [ebp - 4], 3
call fcn.05b15600
mov esi, dword [ebp - 0x8104]
mov byte [ebp - 4], 4
mov ecx, dword [esi + 0x40]
lea edx, [ebp - 0x80c8]
call fcn.05b15cc0
test al, al
jne 0x5b1667f
lea ecx, [ebp - 0x81f8]
push ecx
call fcn.05a023b0
push esi
mov edx, str.Error_encountered_during_parsing
mov byte [ebp - 4], 5
call fcn.05a11970
lea ecx, [ebp - 0x81f8]
mov byte [esi + 4], 0
mov byte [ebp - 4], 4
call fcn.05a022d0
lea esi, [ebp - 0x80c8]
call fcn.05a04340
jmp 0x5b16ad0
lea esi, [ebp - 0x80c8]
call fcn.05a04340
lea eax, [ebp - 0x8100]
mov dword [ebp - 4], 1
call fcn.05a11d70
mov esi, dword [ebp - 0x8100]
jmp 0x5b164c3
lea edx, [ebp - 0x80e0]
push edx
call fcn.05a023b0
push 0x5b6d3a4
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x8100]
push ecx
add eax, 0xc
push eax
push ecx
lea eax, [ebp - 0x80d0]
push str.Invalid_OS_field_found_in_section_
push eax
call fcn.05a03950
add esp, 0xc
push eax
call fcn.05a036b0
add esp, 0xc
push eax
call fcn.05a03950
add esp, 8
lea ecx, [ebp - 0x8034]
lea eax, [ebp - 0x80e0]
call fcn.05a02450
mov edi, 8
mov byte [ebp - 4], 0xc
cmp dword [eax + 0x14], edi
jb 0x5b16805
mov edx, dword [eax]
jmp 0x5b16807
mov edx, eax
mov eax, edx
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5b16810
sub eax, esi
mov esi, dword [ebp - 0x8104]
sar eax, 1
push eax
push edx
lea ecx, [esi + 8]
call fcn.05a01370
cmp dword [ebp - 0x8020], edi
jb 0x5b16abd
mov ecx, dword [ebp - 0x8034]
push ecx
jmp 0x5b16ab5
lea edx, [ebp - 0x80e0]
push edx
call fcn.05a023b0
push 0x5b6d3a4
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x8100]
push ecx
add eax, 0xc
push eax
push ecx
lea eax, [ebp - 0x80d0]
push str.Invalid_Version_field_found_in_section_
push eax
call fcn.05a03950
add esp, 0xc
push eax
call fcn.05a036b0
add esp, 0xc
push eax
call fcn.05a03950
add esp, 8
lea ecx, [ebp - 0x8034]
lea eax, [ebp - 0x80e0]
call fcn.05a02450
mov edi, 8
mov byte [ebp - 4], 0xe
cmp dword [eax + 0x14], edi
jb 0x5b168b1
mov edx, dword [eax]
jmp 0x5b168b3
mov edx, eax
mov eax, edx
lea esi, [eax + 2]
jmp 0x5b168c0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5b168c0
sub eax, esi
mov esi, dword [ebp - 0x8104]
sar eax, 1
push eax
push edx
lea ecx, [esi + 8]
call fcn.05a01370
cmp dword [ebp - 0x8020], edi
jb 0x5b16abd
mov ecx, dword [ebp - 0x8034]
push ecx
jmp 0x5b16ab5
lea edx, [ebp - 0x80e0]
push edx
call fcn.05a023b0
push 0x5b6d3a4
mov byte [ebp - 4], 0xf
mov eax, dword [ebp - 0x8100]
push ecx
add eax, 0xc
push eax
push ecx
lea eax, [ebp - 0x80d0]
push str.Invalid_Product_field_found_in_section_
push eax
call fcn.05a03950
add esp, 0xc
push eax
call fcn.05a036b0
add esp, 0xc
push eax
call fcn.05a03950
add esp, 8
lea ecx, [ebp - 0x8034]
lea eax, [ebp - 0x80e0]
call fcn.05a02450
mov edi, 8
mov byte [ebp - 4], 0x10
cmp dword [eax + 0x14], edi
jb 0x5b16961
mov edx, dword [eax]
jmp 0x5b16963
mov edx, eax
mov eax, edx
lea esi, [eax + 2]
jmp 0x5b16970
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5b16970
sub eax, esi
mov esi, dword [ebp - 0x8104]
sar eax, 1
push eax
push edx
lea ecx, [esi + 8]
call fcn.05a01370
cmp dword [ebp - 0x8020], edi
jb 0x5b16abd
mov ecx, dword [ebp - 0x8034]
push ecx
jmp 0x5b16ab5
mov dword [ebp - 0x80e0], 0x5b6c4b8
mov dword [ebp - 0x80d0], 0x5b6c4c0
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
lea edx, [ebp - 0x80c8]
push edx
lea eax, [ebp - 0x80e0]
mov byte [ebp - 4], 0x11
or dword [ebp - 0x8134], 1
push eax
call fcn.05a02e50
mov dword [ebp - 4], 0x12
mov ecx, dword [ebp - 0x80e0]
mov edx, dword [ecx + 4]
lea eax, [ebp - 0x80c8]
push eax
mov dword [ebp + edx - method.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.virtual_0], vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
call fcn.05a030f0
xor edi, edi
mov dword [ebp - method.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.virtual_0], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [ebp - 0x808c], edi
mov dword [ebp - 0x8088], edi
push 0x5b6d3a4
push ecx
mov byte [ebp - 4], 0x14
mov eax, dword [ebp - 0x8100]
add eax, 0xc
push eax
push ecx
lea ecx, [ebp - 0x80d0]
push str.Invalid_Vendor_field_found_in_section_
push ecx
call fcn.05a03950
add esp, 0xc
push eax
call fcn.05a036b0
add esp, 0xc
push eax
call fcn.05a03950
add esp, 8
lea ecx, [ebp - 0x8034]
lea eax, [ebp - 0x80e0]
call fcn.05a02450
mov ebx, 8
mov byte [ebp - 4], 0x15
cmp dword [eax + 0x14], ebx
jb 0x5b16a80
mov edx, dword [eax]
jmp 0x5b16a82
mov edx, eax
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x5b16a87
sub eax, esi
mov esi, dword [ebp - 0x8104]
sar eax, 1
push eax
push edx
lea ecx, [esi + 8]
call fcn.05a01370
cmp dword [ebp - 0x8020], ebx
jb 0x5b16abd
mov edx, dword [ebp - 0x8034]
push edx
call fcn.05ac7ecf
add esp, 4
lea ecx, [ebp - 0x80e0]
mov byte [esi + 4], 0
mov byte [ebp - 4], 1
call fcn.05a022d0
cmp dword [ebp - 0x8128], 0
je 0x5b16ae8
mov eax, dword [ebp - 0x8128]
push eax
call fcn.05ac7ecf
add esp, 4
mov dword [ebp - 4], 0x16
mov ecx, dword [ebp - 0x8114]
mov eax, dword [ecx]
push ecx
push eax
jmp 0x5b16520
lea edx, [ebp - 0x812c]
push edx
lea ecx, [ebp - 0x8140]
mov dword [ebp - 0x812c], edi
call fcn.05ac7f73
push 0x5b7ca58
lea eax, [ebp - 0x8140]
push eax
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call fcn.05aca87a
int3