Function at 0x405cf0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x416d7d
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
push edi
push 0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2c], al
call fcn.00401d10
push str.SetupBD.ini
lea ecx, [esp + 0x3c]
push 0x41eb30
push ecx
mov dword [esp + 0x310], 0
call fcn.0040e650
add esp, 0xc
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x69]
mov byte [esp + 0x68], 0
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, 8
ja case.0x405d79.4
jmp dword [eax*4 + 0x40636c]
mov eax, dword [esp + 0x3c]
test eax, eax
jne 0x405d8d
mov eax, 0x41821c
push eax
lea edx, [esp + 0x6c]
push 0x200
push edx
push 0x41e9d0
push str.InfSectionName
push str.Win98
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
jmp 0x405f14
mov eax, dword [esp + 0x3c]
test eax, eax
jne 0x405dbf
mov eax, 0x41821c
push eax
lea eax, [esp + 0x6c]
push 0x200
push eax
push 0x41e9d0
push str.InfSectionName
push str.WinME
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
jmp 0x405f14
mov eax, dword [esp + 0x3c]
test eax, eax
jne 0x405df1
mov eax, 0x41821c
push eax
lea ecx, [esp + 0x6c]
push 0x200
push ecx
push 0x41e9d0
push str.InfSectionName
push str.Win2K
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
jmp 0x405f14
mov eax, dword [esp + 0x3c]
test eax, eax
jne 0x405e23
mov eax, 0x41821c
push eax
lea edx, [esp + 0x6c]
push 0x200
push edx
push 0x41e9d0
push str.InfSectionName
push str.WinXP32
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
jmp 0x405f14
mov eax, dword [esp + 0x3c]
test eax, eax
jne 0x405e55
mov eax, 0x41821c
push eax
lea eax, [esp + 0x6c]
push 0x200
push eax
push 0x41e9d0
push str.InfSectionName
push str.WinDotNet32
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
jmp 0x405f14
mov eax, dword [esp + 0x3c]
test eax, eax
jne 0x405e87
mov eax, 0x41821c
push eax
lea ecx, [esp + 0x6c]
push 0x200
push ecx
push 0x41e9d0
push str.InfSectionName
push str.WinXP64
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
jmp 0x405f14
mov eax, dword [esp + 0x3c]
test eax, eax
jne 0x405eb6
mov eax, 0x41821c
push eax
lea edx, [esp + 0x6c]
push 0x200
push edx
push 0x41e9d0
push str.InfSectionName
push str.WinDotNet64
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
jmp 0x405f14
mov al, byte [esp + 0x13]
sub esp, 0x10
mov esi, esp
mov dword [esp + 0x34], esp
push 0
mov ecx, esi
mov byte [esi], al
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.00405060
add esp, 0x10
lea edi, [esp + 0x68]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x6c]
push ecx
lea ecx, [esp + 0x30]
call fcn.00402330
mov dl, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x18]
mov byte [esp + 0x18], dl
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 eax, dword [0x418218]
lea ecx, [esp + 0x28]
push eax
push 0
push ecx
lea ecx, [esp + 0x20]
mov byte [esp + 0x310], 2
call fcn.0040e410
mov edi, 0x41b2a0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x41b2a0
lea ecx, [esp + 0x1c]
call fcn.0040e4f0
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 [0x418218]
lea ecx, [esp + 0x24]
push eax
push 0
push ecx
mov ecx, esi
call fcn.00401b10
call fcn.00405060
add esp, 0x10
lea ecx, [esp + 0x14]
mov byte [esp + 0x304], 1
push 1
call fcn.00401d10
mov edi, 0x41b3c4
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x418218]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push 0x41b3c4
lea ecx, [esp + 0x34]
call fcn.0040e1f0
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4061aa
mov edx, dword [esp + 0x30]
lea eax, [ebp + 1]
sub edx, ebp
lea ecx, [esp + 0x48]
inc edx
push edx
push eax
push ecx
lea ecx, [esp + 0x34]
call fcn.0040dfb0
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 0
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 0x4060a5
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 [0x418218]
lea ecx, [esp + 0x48]
push eax
push 0
push ecx
lea ecx, [esp + 0x20]
mov byte [esp + 0x310], 4
call fcn.0040e410
mov edi, 0x41b2a0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x41b2a0
lea ecx, [esp + 0x1c]
call fcn.0040e4f0
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 [0x418218]
lea ecx, [esp + 0x24]
push eax
push 0
push ecx
mov ecx, esi
call fcn.00401b10
call fcn.00405060
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.0040dfb0
mov ecx, dword [0x418218]
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, 0x41b3c4
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x418218]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push 0x41b3c4
lea ecx, [esp + 0x34]
call fcn.0040e1f0
push 1
lea ecx, [esp + 0x4c]
mov ebp, eax
mov byte [esp + 0x308], 1
call fcn.00401d10
cmp ebp, 0xffffffff
jne 0x406015
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 0
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 0x40621a
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], ebx
mov byte [eax + ebx], 0
mov ecx, dword [0x418218]
xor ebp, ebp
push ecx
lea edx, [esp + 0x2c]
push ebp
push edx
lea ecx, [esp + 0x20]
mov byte [esp + 0x310], 6
call fcn.0040e410
mov edi, 0x41b2a0
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x1c]
repne scasb al, byte es:[edi]
mov eax, dword [0x418218]
not ecx
dec ecx
sub eax, edx
mov esi, ecx
cmp eax, esi
ja 0x40625f
call fcn.0040e999
cmp esi, ebp
jbe 0x4062a5
mov ecx, dword [esp + 0x1c]
push ebp
lea ebx, [ecx + esi]
lea ecx, [esp + 0x18]
push ebx
call fcn.00402510
test al, al
je 0x4062a5
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, esi
mov esi, 0x41b2a0
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], ebx
mov byte [eax + ebx], 0
mov cl, byte [esp + 0x14]
sub esp, 0x10
mov esi, esp
mov dword [esp + 0x34], esp
push ebp
mov byte [esi], cl
mov ecx, esi
call fcn.00401d10
mov edx, dword [0x418218]
lea eax, [esp + 0x24]
push edx
push ebp
push eax
mov ecx, esi
call fcn.00401b10
call fcn.00405060
mov ecx, dword [esp + 0x28]
add esp, 0x10
cmp ecx, ebp
je 0x4062fc
mov al, byte [ecx - 1]
test al, al
je 0x4062f2
cmp al, 0xff
je 0x4062f2
dec al
mov byte [ecx - 1], al
jmp 0x4062fc
dec ecx
push ecx
call fcn.0040e98e
add esp, 4
mov ecx, dword [esp + 0x3c]
cmp ecx, ebp
je 0x406320
mov al, byte [ecx - 1]
test al, al
je 0x406316
cmp al, 0xff
je 0x406316
dec al
mov byte [ecx - 1], al
jmp 0x406320
dec ecx
push ecx
call fcn.0040e98e
add esp, 4
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x3c], ebp
cmp ecx, ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebp
je 0x406350
mov al, byte [ecx - 1]
test al, al
je 0x406346
cmp al, 0xff
je 0x406346
dec al
mov byte [ecx - 1], al
jmp 0x406350
dec ecx
push ecx
call fcn.0040e98e
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