Function at 0x40c400
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x418014
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 0x41fbc0
push eax
mov dword [esp + 0x26c], 0
call fcn.0040f530
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 0x40c46b
mov eax, 0x41921c
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 0x40c48f
mov ecx, 0x41921c
mov ebp, dword [esp + 0x26c]
mov eax, 0x41921c
test ebp, ebp
je 0x40c4a1
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 0x40c5f2
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 0x40c506
mov eax, 0x41921c
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 0x40c52a
mov ecx, 0x41921c
test ebp, ebp
mov eax, 0x41921c
je 0x40c535
mov eax, ebp
push ecx
lea edx, [esp + 0x5c]
push 0x200
push edx
push eax
call ebx
test eax, eax
jne 0x40c58b
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 0x40c5e3
mov edi, dword [ebp + 4]
mov ecx, ebx
mov esi, str.GetPrivateProfileSection___failed_n
jmp 0x40c5cd
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 0x40c5e3
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 + 0x27c]
add esp, 0x10
mov al, byte [esp + 0x58]
lea esi, [esp + 0x58]
test al, al
je 0x40c765
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 [0x419218]
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.0040f0d0
mov edx, eax
cmp edx, 0xffffffff
je 0x40c70a
mov ecx, dword [0x419218]
mov edi, str.InfDir
push ecx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, edx
lea edx, [esp + 0x4c]
push ecx
push edx
lea ecx, [esp + 0x24]
call fcn.0040ee90
mov ecx, dword [0x419218]
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.0040bee0
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 0x40c748
mov al, byte [ecx - 1]
test al, al
je 0x40c73e
cmp al, 0xff
je 0x40c73e
dec al
mov byte [ecx - 1], al
jmp 0x40c748
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 0x40c60b
mov ebp, dword [esp + 0x26c]
mov ecx, dword [esp + 0x2c]
xor esi, esi
cmp ecx, esi
je 0x40c78b
mov al, byte [ecx - 1]
test al, al
je 0x40c781
cmp al, 0xff
je 0x40c781
dec al
mov byte [ecx - 1], al
jmp 0x40c78b
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 0x40c7b7
mov al, byte [ebp - 1]
test al, al
je 0x40c7ad
cmp al, 0xff
je 0x40c7ad
dec al
mov byte [ebp - 1], al
jmp 0x40c7b7
dec ebp
push ebp
call fcn.0040f86e
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