Function at 0x405e80
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x417c6d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2ec
mov al, byte [esp + 3]
push ebx
push ebp
push esi
xor ebx, ebx
push edi
push ebx
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2c], al
call fcn.00401d10
push str.SetupBD.ini
lea ecx, [esp + 0x3c]
push 0x41fbc0
push ecx
mov dword [esp + 0x310], ebx
call fcn.0040f530
add esp, 0xc
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x69]
mov byte [esp + 0x68], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x268]
mov byte [esp + 0x304], 1
stosb byte es:[edi], al
call fcn.00403b10
add eax, 0xfffffffe
cmp eax, 9
ja case.0x405f05.4
jmp dword [eax*4 + 0x406524]
mov eax, dword [esp + 0x3c]
cmp eax, ebx
jne 0x405f19
mov eax, 0x41921c
push eax
lea edx, [esp + 0x6c]
push 0x200
push edx
push 0x41fa60
push str.InfSectionName
push str.Win98
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
jmp 0x4060d1
mov eax, dword [esp + 0x3c]
cmp eax, ebx
jne 0x405f4b
mov eax, 0x41921c
push eax
lea eax, [esp + 0x6c]
push 0x200
push eax
push 0x41fa60
push str.InfSectionName
push str.WinME
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
jmp 0x4060d1
mov eax, dword [esp + 0x3c]
cmp eax, ebx
jne 0x405f7d
mov eax, 0x41921c
push eax
lea ecx, [esp + 0x6c]
push 0x200
push ecx
push 0x41fa60
push str.InfSectionName
push str.Win2K
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
jmp 0x4060d1
mov eax, dword [esp + 0x3c]
cmp eax, ebx
jne 0x405faf
mov eax, 0x41921c
push eax
lea edx, [esp + 0x6c]
push 0x200
push edx
push 0x41fa60
push str.InfSectionName
push str.WinXP32
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
jmp 0x4060d1
mov eax, dword [esp + 0x3c]
cmp eax, ebx
jne 0x405fe1
mov eax, 0x41921c
push eax
lea eax, [esp + 0x6c]
push 0x200
push eax
push 0x41fa60
push str.InfSectionName
push str.Win2K3Srv32
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
jmp 0x4060d1
mov eax, dword [esp + 0x3c]
cmp eax, ebx
jne 0x406013
mov eax, 0x41921c
push eax
lea ecx, [esp + 0x6c]
push 0x200
push ecx
push 0x41fa60
push str.InfSectionName
push str.WinXP64
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
jmp 0x4060d1
mov eax, dword [esp + 0x3c]
cmp eax, ebx
jne 0x406045
mov eax, 0x41921c
push eax
lea edx, [esp + 0x6c]
push 0x200
push edx
push 0x41fa60
push str.InfSectionName
push str.Win2K3Srv64
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
jmp 0x4060d1
mov eax, dword [esp + 0x3c]
cmp eax, ebx
jne 0x406074
mov eax, 0x41921c
push eax
lea eax, [esp + 0x6c]
push 0x200
push eax
push 0x41fa60
push str.InfSectionName
push str.Win2K3Srv32E
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
jmp 0x4060d1
mov cl, byte [esp + 0x13]
sub esp, 0x10
mov esi, esp
mov dword [esp + 0x34], esp
push ebx
mov byte [esi], cl
mov ecx, esi
call fcn.00401d10
mov edi, str.unsupported_OS__unable_to_get_section_name_n
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.unsupported_OS__unable_to_get_section_name_n
mov ecx, esi
call fcn.00402330
call fcn.004051f0
add esp, 0x10
lea edi, [esp + 0x68]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x68]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x30]
call fcn.00402330
mov al, byte [esp + 0x13]
push ebx
lea ecx, [esp + 0x18]
mov byte [esp + 0x18], al
call fcn.00401d10
mov edi, str.section_names_from_ini:
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.section_names_from_ini:
lea ecx, [esp + 0x1c]
call fcn.00402330
mov ecx, dword [0x419218]
lea edx, [esp + 0x28]
push ecx
push ebx
push edx
lea ecx, [esp + 0x20]
mov byte [esp + 0x310], 2
call fcn.0040f2f0
mov edi, 0x41c2dc
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x41c2dc
lea ecx, [esp + 0x1c]
call fcn.0040f3d0
mov al, byte [esp + 0x14]
sub esp, 0x10
mov esi, esp
mov dword [esp + 0x34], esp
push ebx
mov ecx, esi
mov byte [esi], al
call fcn.00401d10
mov ecx, dword [0x419218]
lea edx, [esp + 0x24]
push ecx
push ebx
push edx
mov ecx, esi
call fcn.00401b10
call fcn.004051f0
add esp, 0x10
lea ecx, [esp + 0x14]
mov byte [esp + 0x304], 1
push 1
call fcn.00401d10
mov edi, 0x41c400
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x419218]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push 0x41c400
lea ecx, [esp + 0x34]
call fcn.0040f0d0
mov ebp, eax
cmp ebp, 0xffffffff
je 0x40636a
jmp 0x4061d4
xor ebx, ebx
mov eax, dword [esp + 0x30]
lea ecx, [ebp + 1]
sub eax, ebp
lea edx, [esp + 0x48]
inc eax
push eax
push ecx
push edx
lea ecx, [esp + 0x34]
call fcn.0040ee90
mov ecx, dword [esp + 0x30c]
lea edx, [esp + 0x48]
push edx
push 1
mov eax, dword [ecx + 8]
mov byte [esp + 0x30c], 3
push eax
call fcn.00402630
mov al, byte [esp + 0x13]
push ebx
lea ecx, [esp + 0x18]
mov byte [esp + 0x18], al
call fcn.00401d10
mov edi, str.added_section_name:
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0x18]
push ebx
call fcn.00402510
test al, al
je 0x406263
mov edi, dword [esp + 0x18]
mov ecx, ebx
mov edx, ecx
mov esi, str.added_section_name:
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.004024f0
mov eax, dword [0x419218]
lea ecx, [esp + 0x48]
push eax
push 0
push ecx
lea ecx, [esp + 0x20]
mov byte [esp + 0x310], 4
call fcn.0040f2f0
mov edi, 0x41c2dc
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x41c2dc
lea ecx, [esp + 0x1c]
call fcn.0040f3d0
mov dl, byte [esp + 0x14]
sub esp, 0x10
mov esi, esp
mov dword [esp + 0x34], esp
push 0
mov ecx, esi
mov byte [esi], dl
call fcn.00401d10
mov eax, dword [0x419218]
lea ecx, [esp + 0x24]
push eax
push 0
push ecx
mov ecx, esi
call fcn.00401b10
call fcn.004051f0
add esp, 0x10
lea ecx, [esp + 0x14]
mov byte [esp + 0x304], 3
push 1
call fcn.00401d10
push ebp
lea edx, [esp + 0x5c]
push 0
push edx
lea ecx, [esp + 0x34]
call fcn.0040ee90
mov ecx, dword [0x419218]
mov byte [esp + 0x304], 5
push ecx
push 0
push eax
lea ecx, [esp + 0x34]
call fcn.00401b10
push 1
lea ecx, [esp + 0x5c]
mov byte [esp + 0x308], 3
call fcn.00401d10
mov edi, 0x41c400
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x419218]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push 0x41c400
lea ecx, [esp + 0x34]
call fcn.0040f0d0
push 1
lea ecx, [esp + 0x4c]
mov ebp, eax
mov byte [esp + 0x308], 1
call fcn.00401d10
cmp ebp, 0xffffffff
jne 0x4061d2
xor ebx, ebx
mov ecx, dword [esp + 0x30c]
lea edx, [esp + 0x28]
push edx
push 1
mov eax, dword [ecx + 8]
push eax
call fcn.00402630
mov al, byte [esp + 0x13]
push ebx
lea ecx, [esp + 0x18]
mov byte [esp + 0x18], al
call fcn.00401d10
mov edi, str.added_section_name:
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x18]
push ebp
call fcn.00402510
test al, al
je 0x4063d9
mov edi, dword [esp + 0x18]
mov ecx, ebp
mov edx, ecx
mov esi, str.added_section_name:
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], ebp
mov byte [eax + ebp], 0
mov ecx, dword [0x419218]
lea edx, [esp + 0x28]
push ecx
push ebx
push edx
lea ecx, [esp + 0x20]
mov byte [esp + 0x310], 6
call fcn.0040f2f0
mov edi, 0x41c2dc
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x1c]
repne scasb al, byte es:[edi]
mov eax, dword [0x419218]
not ecx
dec ecx
sub eax, edx
mov esi, ecx
cmp eax, esi
ja 0x40641c
call fcn.0040f879
cmp esi, ebx
jbe 0x406462
mov ecx, dword [esp + 0x1c]
push ebx
lea ebp, [ecx + esi]
lea ecx, [esp + 0x18]
push ebp
call fcn.00402510
test al, al
je 0x406462
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, esi
mov esi, 0x41c2dc
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], ebp
mov byte [eax + ebp], 0
mov dl, byte [esp + 0x14]
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x34], esp
mov byte [ecx], dl
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], ebx
mov eax, dword [0x419218]
lea edx, [esp + 0x24]
push eax
push ebx
push edx
call fcn.00401b10
call fcn.004051f0
mov ecx, dword [esp + 0x28]
add esp, 0x10
cmp ecx, ebx
je 0x4064b7
mov al, byte [ecx - 1]
test al, al
je 0x4064ad
cmp al, 0xff
je 0x4064ad
dec al
mov byte [ecx - 1], al
jmp 0x4064b7
dec ecx
push ecx
call fcn.0040f86e
add esp, 4
mov ecx, dword [esp + 0x3c]
cmp ecx, ebx
je 0x4064db
mov al, byte [ecx - 1]
test al, al
je 0x4064d1
cmp al, 0xff
je 0x4064d1
dec al
mov byte [ecx - 1], al
jmp 0x4064db
dec ecx
push ecx
call fcn.0040f86e
add esp, 4
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x3c], ebx
cmp ecx, ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
je 0x40650b
mov al, byte [ecx - 1]
test al, al
je 0x406501
cmp al, 0xff
je 0x406501
dec al
mov byte [ecx - 1], al
jmp 0x40650b
dec ecx
push ecx
call fcn.0040f86e
add esp, 4
mov ecx, dword [esp + 0x2fc]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x2f8
ret