Function at 0x417350
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x430660
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x448070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x20]
push str.Entering___ReadInfDirsFromIni
push 0x44aca0
mov dword [ebp - 4], 0
call sym.SetupBD.exe_public:_void___cdecl_CNcsDebug::Print_wchar_t_const__
push str.SetupBD.ini
lea eax, [ebp - 0x40]
push 0x448024
push eax
call fcn.0040fb60
xor ecx, ecx
mov byte [ebp - 4], 1
mov esi, 0x104
mov edx, 2
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041aa20
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x40]
add esp, 0x18
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x2c], 8
cmovae ecx, dword [ebp - 0x40]
push ecx
push esi
push eax
push 0
push 0
push 0
call ebx
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
lea eax, [ebp + 8]
cmovae ecx, dword [ebp - 0x40]
cmp dword [ebp + 0x1c], 8
push ecx
cmovae eax, dword [ebp + 8]
push esi
push dword [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
test eax, eax
jne 0x41741a
push str.GetPrivateProfileSection___failed
jmp 0x4174c1
cmp eax, 0x102
jne 0x4174ce
jmp 0x417430
push str.GetPrivateProfileSection___increasing_size_of_section_buffer
push 0x44aca0
call sym.SetupBD.exe_public:_void___cdecl_CNcsDebug::Print_wchar_t_const__
add esi, esi
add esp, 8
cmp esi, 0x7fff
ja 0x4174bc
push dword [ebp - 0x5c]
call fcn.0041ad35
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041aa20
add esp, 8
mov ecx, eax
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
mov dword [ebp - 0x5c], ecx
cmovae eax, dword [ebp - 0x40]
push eax
push esi
push ecx
push 0
push 0
push 0
call ebx
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
lea eax, [ebp + 8]
cmovae ecx, dword [ebp - 0x40]
cmp dword [ebp + 0x1c], 8
push ecx
cmovae eax, dword [ebp + 8]
push esi
push dword [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
lea eax, [esi - 2]
cmp eax, 0x102
je 0x417430
jmp 0x4174ce
push str.GetPrivateProfileSection___failed_for_section_being_too_large
push 0x44aca0
call sym.SetupBD.exe_public:_void___cdecl_CNcsDebug::Print_wchar_t_const__
add esp, 8
mov eax, dword [ebp - 0x5c]
mov edx, eax
mov dword [ebp - 0x60], edx
cmp word [eax], 0
je 0x41770d
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp word [edx], ax
je 0x41750f
mov eax, edx
lea esi, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x417500
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x28]
call sym.SetupBD.exe_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::assign_wchar_t_const___unsigned_int_
push 7
push 0xffffffffffffffff
push str.InfDir
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call sym.SetupBD.exe_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::rfind_wchar_t_const___unsigned_int__unsigned_int_const
cmp eax, 0xffffffff
je 0x4176c1
push 0xffffffffffffffff
add eax, 7
lea ecx, [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
push eax
call sym.SetupBD.exe_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::substr_unsigned_int__unsigned_int_
mov esi, eax
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x4175bf
cmp dword [ebp - 0x14], 8
jb 0x417563
push dword [ebp - 0x28]
call fcn.0041aa29
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp dword [esi + 0x14], 8
jae 0x417595
mov eax, dword [esi + 0x10]
inc eax
je 0x4175a0
add eax, eax
push eax
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.0041adc0
add esp, 0xc
jmp 0x4175a0
mov eax, dword [esi]
mov dword [ebp - 0x28], eax
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp dword [ebp - 0x44], 8
jb 0x4175d0
push dword [ebp - 0x58]
call fcn.0041aa29
add esp, 4
push 1
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp - 0x28]
push eax
call sym.SetupBD.exe_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::assign_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___unsigned_int__unsigned_int_
lea eax, [ebp - 0x58]
push eax
call fcn.00417cd0
add esp, 0x20
mov esi, eax
mov ecx, dword [edi + 4]
mov byte [ebp - 4], 3
cmp esi, ecx
jae 0x417640
mov eax, dword [edi]
cmp eax, esi
ja 0x417640
sub esi, eax
mov eax, 0x2aaaaaab
imul esi
sar edx, 2
mov esi, edx
shr esi, 0x1f
add esi, edx
cmp ecx, dword [edi + 8]
jne 0x417636
push 1
mov ecx, edi
call fcn.004198c0
mov eax, dword [edi]
lea ecx, [esi + esi*2]
lea esi, [eax + ecx*8]
jmp 0x41764e
cmp ecx, dword [edi + 8]
jne 0x41764e
push 1
mov ecx, edi
call fcn.004198c0
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x4176ac
mov dword [ebx + 0x14], 7
xor eax, eax
mov dword [ebx + 0x10], 0
mov word [ebx], ax
cmp dword [esi + 0x14], 8
jae 0x417683
mov eax, dword [esi + 0x10]
inc eax
je 0x41768d
add eax, eax
push eax
push esi
push ebx
call fcn.0041adc0
add esp, 0xc
jmp 0x41768d
mov eax, dword [esi]
mov dword [ebx], eax
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [ebx + 0x14], eax
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
add dword [edi + 4], 0x18
cmp dword [ebp - 0x44], 8
jb 0x4176c1
push dword [ebp - 0x58]
call fcn.0041aa29
add esp, 4
mov edx, dword [ebp - 0x60]
mov ecx, edx
lea esi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4176d0
sub ecx, esi
mov byte [ebp - 4], 1
sar ecx, 1
lea edx, [edx + ecx*2]
add edx, 2
cmp dword [ebp - 0x14], 8
mov dword [ebp - 0x60], edx
jb 0x417700
push dword [ebp - 0x28]
call fcn.0041aa29
mov edx, dword [ebp - 0x60]
add esp, 4
cmp word [edx], 0
jne 0x4174e0
mov eax, dword [ebp - 0x5c]
push eax
call fcn.0041ad35
add esp, 4
cmp dword [ebp - 0x2c], 8
jb 0x417727
push dword [ebp - 0x40]
call fcn.0041aa29
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
cmp dword [ebp + 0x1c], 8
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
jb 0x41774c
push dword [ebp + 8]
call fcn.0041aa29
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 - 0x10]
xor ecx, ebp
call fcn.0041b486
mov esp, ebp
pop ebp
ret