Function at 0x40c7d0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x418049
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x238
push ebx
push ebp
push esi
push edi
push str.SetupBD.ini
lea eax, [esp + 0x2c]
push 0x41fbc0
push eax
mov dword [esp + 0x25c], 0
call fcn.0040f530
add esp, 0xc
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x49]
mov byte [esp + 0x48], 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 + 0x250], 1
test eax, eax
jne 0x40c83b
mov eax, 0x41921c
push eax
lea ecx, [esp + 0x4c]
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 0x40c85f
mov ecx, 0x41921c
mov ebp, dword [esp + 0x25c]
mov eax, 0x41921c
test ebp, ebp
je 0x40c871
mov eax, ebp
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
push ecx
lea edx, [esp + 0x4c]
push 0x200
push edx
push eax
call ebx
test eax, eax
jne 0x40c9c2
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.004051f0
mov eax, dword [esp + 0x3c]
add esp, 0x10
test eax, eax
jne 0x40c8d6
mov eax, 0x41921c
push eax
lea ecx, [esp + 0x4c]
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 0x40c8fa
mov ecx, 0x41921c
test ebp, ebp
mov eax, 0x41921c
je 0x40c905
mov eax, ebp
push ecx
lea edx, [esp + 0x4c]
push 0x200
push edx
push eax
call ebx
test eax, eax
jne 0x40c95b
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 0x40c9b3
mov edi, dword [ebp + 4]
mov ecx, ebx
mov esi, str.GetPrivateProfileSection___failed_n
jmp 0x40c99d
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 0x40c9b3
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.004051f0
mov ebp, dword [esp + 0x26c]
add esp, 0x10
mov al, byte [esp + 0x48]
lea esi, [esp + 0x48]
test al, al
je 0x40caf9
mov ebp, dword [esp + 0x268]
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.InfExclude
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x419218]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x250], bl
push ecx
push edx
push str.InfExclude
lea ecx, [esp + 0x24]
call fcn.0040f0d0
mov edx, eax
cmp edx, 0xffffffff
je 0x40ca9e
mov ecx, dword [0x419218]
mov edi, str.InfExclude
push ecx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, edx
lea edx, [esp + 0x3c]
push ecx
push edx
lea ecx, [esp + 0x24]
call fcn.0040ee90
mov ecx, dword [0x419218]
mov byte [esp + 0x250], 3
push ecx
push 0
push eax
lea ecx, [esp + 0x24]
call fcn.00401b10
push 1
lea ecx, [esp + 0x3c]
mov byte [esp + 0x254], bl
call fcn.00401d10
mov eax, dword [ebp + 8]
lea edx, [esp + 0x18]
push edx
push 1
push eax
mov ecx, ebp
call fcn.00402630
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x250], 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 0x40cadc
mov al, byte [ecx - 1]
test al, al
je 0x40cad2
cmp al, 0xff
je 0x40cad2
dec al
mov byte [ecx - 1], al
jmp 0x40cadc
dec ecx
push ecx
call fcn.0040f86e
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 0x40c9db
mov ebp, dword [esp + 0x25c]
mov ecx, dword [esp + 0x2c]
xor esi, esi
cmp ecx, esi
je 0x40cb1f
mov al, byte [ecx - 1]
test al, al
je 0x40cb15
cmp al, 0xff
je 0x40cb15
dec al
mov byte [ecx - 1], al
jmp 0x40cb1f
dec ecx
push ecx
call fcn.0040f86e
add esp, 4
cmp ebp, esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
je 0x40cb4b
mov al, byte [ebp - 1]
test al, al
je 0x40cb41
cmp al, 0xff
je 0x40cb41
dec al
mov byte [ebp - 1], al
jmp 0x40cb4b
dec ebp
push ebp
call fcn.0040f86e
add esp, 4
mov ecx, dword [esp + 0x248]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x244
ret