Function at 0x40bc20
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4170b4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x248
push ebx
push ebp
push esi
push edi
push str.SetupBD.ini
lea eax, [esp + 0x2c]
push 0x41eb30
push eax
mov dword [esp + 0x26c], 0
call fcn.0040e650
add esp, 0xc
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x59]
mov byte [esp + 0x58], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x260], 1
test eax, eax
jne 0x40bc8b
mov eax, 0x41821c
push eax
lea ecx, [esp + 0x5c]
push 0x200
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [esp + 0x2c]
test ecx, ecx
jne 0x40bcaf
mov ecx, 0x41821c
mov ebp, dword [esp + 0x26c]
mov eax, 0x41821c
test ebp, ebp
je 0x40bcc1
mov eax, ebp
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
push ecx
lea edx, [esp + 0x5c]
push 0x200
push edx
push eax
call ebx
test eax, eax
jne 0x40be12
mov al, byte [esp + 0x13]
sub esp, 0x10
mov esi, esp
mov dword [esp + 0x24], esp
push 0
mov ecx, esi
mov byte [esi], al
call fcn.00401d10
mov edi, str.GetPrivateProfileSection___failed__trying_again..._n
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.GetPrivateProfileSection___failed__trying_again..._n
mov ecx, esi
call fcn.00402330
call fcn.00405060
mov eax, dword [esp + 0x3c]
add esp, 0x10
test eax, eax
jne 0x40bd26
mov eax, 0x41821c
push eax
lea ecx, [esp + 0x5c]
push 0x200
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [esp + 0x2c]
test ecx, ecx
jne 0x40bd4a
mov ecx, 0x41821c
test ebp, ebp
mov eax, 0x41821c
je 0x40bd55
mov eax, ebp
push ecx
lea edx, [esp + 0x5c]
push 0x200
push edx
push eax
call ebx
test eax, eax
jne 0x40bdab
mov al, byte [esp + 0x13]
sub esp, 0x10
mov ebp, esp
mov dword [esp + 0x24], esp
push 0
mov ecx, ebp
mov byte [ebp], al
call fcn.00401d10
mov edi, str.GetPrivateProfileSection___failed_n
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
mov ecx, ebp
push ebx
call fcn.00402510
test al, al
je 0x40be03
mov edi, dword [ebp + 4]
mov ecx, ebx
mov esi, str.GetPrivateProfileSection___failed_n
jmp 0x40bded
mov al, byte [esp + 0x13]
sub esp, 0x10
mov ebp, esp
mov dword [esp + 0x24], esp
push 0
mov ecx, ebp
mov byte [ebp], al
call fcn.00401d10
mov edi, str.GetPrivateProfileSection___succeeded_n
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
mov ecx, ebp
push ebx
call fcn.00402510
test al, al
je 0x40be03
mov edi, dword [ebp + 4]
mov ecx, ebx
mov esi, str.GetPrivateProfileSection___succeeded_n
mov edx, ecx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebp
call fcn.004024f0
call fcn.00405060
mov ebp, dword [esp + 0x27c]
add esp, 0x10
mov al, byte [esp + 0x58]
lea esi, [esp + 0x58]
test al, al
je 0x40bf75
mov ebp, dword [esp + 0x278]
mov bl, 2
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1c], al
call fcn.00401d10
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
lea ecx, [esp + 0x20]
call fcn.00402330
mov edi, str.InfDir
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x418218]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x260], bl
push ecx
push edx
push str.InfDir
lea ecx, [esp + 0x24]
call fcn.0040e1f0
cmp eax, 0xffffffff
je 0x40bf1a
mov ecx, dword [0x418218]
add eax, 7
push ecx
lea edx, [esp + 0x4c]
push eax
push edx
lea ecx, [esp + 0x24]
call fcn.0040dfb0
mov ecx, dword [0x418218]
mov byte [esp + 0x260], 3
push ecx
push 0
push eax
lea ecx, [esp + 0x24]
call fcn.00401b10
push 1
lea ecx, [esp + 0x4c]
mov byte [esp + 0x264], bl
call fcn.00401d10
push 1
lea edx, [esp + 0x1c]
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call fcn.004017b0
lea eax, [esp + 0x4c]
push eax
call fcn.0040b700
add esp, 0x18
mov ecx, dword [ebp + 8]
push eax
push 1
push ecx
mov ecx, ebp
mov byte [esp + 0x26c], 4
call fcn.00402630
push 1
lea ecx, [esp + 0x3c]
mov byte [esp + 0x264], bl
call fcn.00401d10
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x260], 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
xor edi, edi
lea esi, [esi + ecx + 1]
mov ecx, dword [esp + 0x1c]
cmp ecx, edi
je 0x40bf58
mov al, byte [ecx - 1]
test al, al
je 0x40bf4e
cmp al, 0xff
je 0x40bf4e
dec al
mov byte [ecx - 1], al
jmp 0x40bf58
dec ecx
push ecx
call fcn.0040e98e
add esp, 4
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov al, byte [esi]
test al, al
jne 0x40be2b
mov ebp, dword [esp + 0x26c]
mov ecx, dword [esp + 0x2c]
xor esi, esi
cmp ecx, esi
je 0x40bf9b
mov al, byte [ecx - 1]
test al, al
je 0x40bf91
cmp al, 0xff
je 0x40bf91
dec al
mov byte [ecx - 1], al
jmp 0x40bf9b
dec ecx
push ecx
call fcn.0040e98e
add esp, 4
cmp ebp, esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
je 0x40bfc7
mov al, byte [ebp - 1]
test al, al
je 0x40bfbd
cmp al, 0xff
je 0x40bfbd
dec al
mov byte [ebp - 1], al
jmp 0x40bfc7
dec ebp
push ebp
call fcn.0040e98e
add esp, 4
mov ecx, dword [esp + 0x258]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x254
ret