Function at 0x40df30
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x543d76
mov eax, dword fs:[0]
push eax
mov eax, 0x3050
call fcn.00525f50
mov eax, dword [0x5acd88]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x305c], eax
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x1010], ax
lea eax, [ebp - 0x100e]
push eax
call fcn.005265d0
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x810], ax
lea eax, [ebp - 0x80e]
push eax
call fcn.005265d0
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x2010], ax
lea eax, [ebp - 0x200e]
push eax
call fcn.005265d0
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x1810], ax
lea eax, [ebp - 0x180e]
push eax
call fcn.005265d0
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x3010], ax
lea eax, [ebp - 0x300e]
push eax
call fcn.005265d0
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x2810], ax
lea eax, [ebp - 0x280e]
push eax
call fcn.005265d0
add esp, 0x48
lea eax, [ebp - 0x2010]
push esi
push 0x55539c
push 0x400
push eax
call fcn.00525204
push edi
push 0x55539c
lea eax, [ebp - 0x1810]
push 0x400
push eax
call fcn.00525204
push ebx
push 0x55539c
lea eax, [ebp - 0x3010]
push 0x400
push eax
call fcn.00525204
push dword [ebp - 0x305c]
lea eax, [ebp - 0x2810]
push 0x55539c
push 0x400
push eax
call fcn.00525204
add esp, 0x40
lea eax, [ebp - 0x2810]
push eax
push 0x400
lea eax, [ebp - 0x1010]
push eax
push 0x55514c
lea eax, [ebp - 0x1810]
push eax
lea eax, [ebp - 0x2010]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor eax, eax
mov dword [ebp - 0x302c], 7
mov dword [ebp - 0x3030], 0
mov word [ebp - 0x3040], ax
cmp word [ebp - 0x1010], ax
jne 0x40e0d3
xor ecx, ecx
jmp 0x40e0ef
lea ecx, [ebp - 0x1010]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e0e0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x1010]
push eax
lea ecx, [ebp - 0x3040]
call fcn.0040a630
xor eax, eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x3014], 7
mov dword [ebp - 0x3018], 0
mov word [ebp - 0x3028], ax
lea eax, [ebp - 0x1010]
push eax
lea eax, [ebp - 0x3010]
push eax
lea eax, [ebp - 0x1810]
push eax
lea eax, [ebp - 0x2010]
push eax
push str.DeleteINIKeyValueList
push str.__S___s__s__remove__s_in___s_
mov byte [ebp - 4], 1
call fcn.0040bef0
add esp, 0x18
jmp 0x40e160
cmp dword [ebp - 0x302c], 8
lea eax, [ebp - 0x3040]
cmovae eax, dword [ebp - 0x3040]
push 0x55514c
push eax
call fcn.00525079
add esp, 8
test eax, eax
je 0x40e428
push 1
push 0
push 0x5552f0
lea ecx, [ebp - 0x3040]
call fcn.0040a990
mov edi, eax
test edi, edi
js 0x40e335
push edi
push 0
lea eax, [ebp - 0x3058]
push eax
lea ecx, [ebp - 0x3040]
call fcn.0040ac00
mov esi, eax
lea eax, [ebp - 0x3028]
cmp eax, esi
je 0x40e255
cmp dword [ebp - 0x3014], 8
jb 0x40e1e4
push dword [ebp - 0x3028]
call fcn.00414c8d
add esp, 4
xor eax, eax
mov dword [ebp - 0x3014], 7
mov dword [ebp - 0x3018], 0
mov word [ebp - 0x3028], ax
cmp dword [esi + 0x14], 8
jae 0x40e222
mov eax, dword [esi + 0x10]
inc eax
je 0x40e230
add eax, eax
push eax
lea eax, [ebp - 0x3028]
push esi
push eax
call fcn.00524650
add esp, 0xc
jmp 0x40e230
mov eax, dword [esi]
mov dword [ebp - 0x3028], eax
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x3018], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x3014], eax
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp dword [ebp - 0x3044], 8
jb 0x40e26c
push dword [ebp - 0x3058]
call fcn.00414c8d
add esp, 4
push 0xffffffffffffffff
lea eax, [edi + 1]
push eax
lea eax, [ebp - 0x3058]
push eax
lea ecx, [ebp - 0x3040]
call fcn.0040ac00
mov esi, eax
lea eax, [ebp - 0x3040]
cmp eax, esi
je 0x40e31c
cmp dword [ebp - 0x302c], 8
jb 0x40e2ab
push dword [ebp - 0x3040]
call fcn.00414c8d
add esp, 4
xor eax, eax
mov dword [ebp - 0x302c], 7
mov dword [ebp - 0x3030], 0
mov word [ebp - 0x3040], ax
cmp dword [esi + 0x14], 8
jae 0x40e2e9
mov eax, dword [esi + 0x10]
inc eax
je 0x40e2f7
add eax, eax
push eax
lea eax, [ebp - 0x3040]
push esi
push eax
call fcn.00524650
add esp, 0xc
jmp 0x40e2f7
mov eax, dword [esi]
mov dword [ebp - 0x3040], eax
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x3030], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x302c], eax
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp dword [ebp - 0x3044], 8
jb 0x40e383
push dword [ebp - 0x3058]
call fcn.00414c8d
add esp, 4
jmp 0x40e383
cmp dword [ebp - 0x302c], 8
lea eax, [ebp - 0x3040]
cmovae eax, dword [ebp - 0x3040]
push 0x55514c
push eax
call fcn.00525079
add esp, 8
test eax, eax
je 0x40e383
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x3040]
push eax
lea ecx, [ebp - 0x3028]
call fcn.0040a4c0
push 0
push 0x55514c
lea ecx, [ebp - 0x3040]
call fcn.0040a630
cmp dword [ebp - 0x3014], 8
lea ecx, [ebp - 0x3010]
lea eax, [ebp - 0x3028]
cmovae eax, dword [ebp - 0x3028]
push ecx
push eax
call fcn.00525079
add esp, 8
test eax, eax
je 0x40e160
lea eax, [ebp - 0x810]
push 0x55514c
push eax
call fcn.00525079
add esp, 8
test eax, eax
lea eax, [ebp - 0x3028]
jne 0x40e3fa
cmp dword [ebp - 0x3014], 8
cmovae eax, dword [ebp - 0x3028]
push eax
push 0x55539c
lea eax, [ebp - 0x810]
push 0x400
push eax
call fcn.00525204
add esp, 0x10
jmp 0x40e160
cmp dword [ebp - 0x3014], 8
cmovae eax, dword [ebp - 0x3028]
push eax
lea eax, [ebp - 0x810]
push eax
push str._s__s
push 0x400
push eax
call fcn.00525204
add esp, 0x14
jmp 0x40e160
lea eax, [ebp - 0x2810]
push eax
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x1810]
push eax
lea eax, [ebp - 0x2010]
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x1810]
push eax
lea eax, [ebp - 0x2010]
push eax
push str.DeleteINIKeyValueList
push str.__S___s__s__write___s_
call fcn.0040bef0
add esp, 0x14
cmp dword [ebp - 0x3014], 8
jb 0x40e488
push dword [ebp - 0x3028]
call fcn.00414c8d
add esp, 4
xor eax, eax
cmp dword [ebp - 0x302c], 8
mov dword [ebp - 0x3014], 7
mov dword [ebp - 0x3018], 0
mov word [ebp - 0x3028], ax
jb 0x40e4bc
push dword [ebp - 0x3040]
call fcn.00414c8d
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00525af7
mov esp, ebp
pop ebp
ret