Function at 0x40d590
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov al, byte [0x17cdcb3]
cmp al, 1
jne 0x40d5bc
cmp dword [0x17cdcc4], 5
jne 0x40d5bc
mov dword [0x17cdcc4], 6
mov byte [0x17cdcb3], 0
mov eax, dword [0x17cdcc4]
add eax, 0xfffffffe
cmp eax, 6
ja case.default.0x40d5cd
jmp dword [eax*4 + 0x40db34]
lea ecx, [esp + 0x14]
push 6
push ecx
lea ecx, [esi + 0xcf020]
mov byte [esp + 0x1c], 0
mov byte [esp + 0x1d], 4
mov byte [esp + 0x1e], 0x31
mov byte [esp + 0x1f], 0xba
mov byte [esp + 0x20], 1
mov byte [esp + 0x21], 3
call fcn.00420360
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
lea ecx, [esi + 0x74]
mov byte [esp + 0x14], 0
mov byte [esp + 0x15], 5
mov byte [esp + 0x16], 0x31
mov byte [esp + 0x17], 0xb9
mov byte [esp + 0x18], 1
mov byte [esp + 0x19], 3
call fcn.00401b00
lea edx, [esp + 0x14]
push 7
push edx
lea ecx, [esi + 0xcf020]
mov byte [esp + 0x22], al
call fcn.00420360
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
lea eax, [esp + 0x14]
push 6
push eax
lea ecx, [esi + 0xcf020]
mov byte [esp + 0x1c], 0
mov byte [esp + 0x1d], 4
mov byte [esp + 0x1e], 0x31
mov byte [esp + 0x1f], 0xba
mov byte [esp + 0x20], 1
mov byte [esp + 0x21], 3
call fcn.00420360
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
mov al, byte [0x17cdcb2]
test al, al
jne 0x40d877
mov al, byte [esi + 0xd0ab0]
test al, al
jne 0x40d6b5
mov ecx, dword [esi + 0xd0a50]
push 0
push 0
push 0x184
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
xor edx, edx
mov ebx, 3
mov dl, byte [0xc6f8af]
mov edi, edx
cmp edi, ebx
jne 0x40d6f5
mov ecx, dword [0xc6f8b0]
xor edx, edx
mov eax, ecx
mov dl, ch
and eax, 0xff
shl eax, 8
add eax, edx
push eax
push eax
mov eax, dword [0xdbdb98]
and eax, 0xff
push eax
push 0x46866c
jmp 0x40d77f
cmp edi, 4
jne 0x40d738
mov ecx, dword [0xc6f8b0]
xor edx, edx
mov eax, ecx
mov dl, ch
and eax, 0xff
xor ecx, ecx
mov cl, byte [0xc6f8b2]
shl eax, 8
add eax, edx
mov edx, dword [0xdbdb98]
shl eax, 8
add eax, ecx
and edx, 0xff
push eax
push eax
push edx
lea eax, [esp + 0x38]
push 0x468640
push eax
jmp 0x40d784
cmp edi, 5
jne 0x40d78c
mov ecx, dword [0xc6f8b0]
xor edx, edx
mov eax, ecx
mov dl, ch
and eax, 0xff
xor ecx, ecx
mov cl, byte [0xc6f8b2]
shl eax, 8
add eax, edx
xor edx, edx
mov dl, byte [0xc6f8b3]
shl eax, 8
add eax, ecx
shl eax, 8
add eax, edx
push eax
push eax
mov eax, dword [0xdbdb98]
and eax, 0xff
push eax
push 0x468614
lea ecx, [esp + 0x3c]
push ecx
call fcn.00428a3e
add esp, 0x14
push 0
lea edx, [esp + 0x30]
push 0
push edx
mov ecx, esi
call fcn.0040a390
mov al, byte [edi + 0xc6f8b0]
lea edi, [edi + 0xc6f8b0]
xor ebp, ebp
cmp al, 0xff
je 0x40d7d6
cmp ebp, 8
jg 0x40d7d6
xor eax, eax
xor ecx, ecx
mov al, byte [edi + 2]
mov cl, byte [edi + 1]
xor edx, edx
push ebp
mov dl, byte [edi]
push eax
push ecx
push edx
mov ecx, esi
call fcn.0040db50
mov al, byte [edi + ebx]
add edi, ebx
inc ebp
cmp al, 0xff
jne 0x40d7ae
mov al, byte [esi + 0xd0ab0]
test al, al
jne 0x40d817
lea eax, [esp + 0x14]
push 6
push eax
lea ecx, [esi + 0xcf020]
mov byte [esp + 0x1c], 0
mov byte [esp + 0x1d], 4
mov byte [esp + 0x1e], 0x31
mov byte [esp + 0x1f], 0xba
mov byte [esp + 0x20], 1
mov byte [esp + 0x21], bl
call fcn.00420360
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
mov ecx, dword [esi + 0x1c]
push 4
push ecx
call dword [sym.imp.USER32.dll_KillTimer]
lea edi, [esi + 0x74]
mov ecx, edi
call fcn.00401b00
inc eax
mov ecx, edi
push eax
call fcn.004025b0
lea edx, [esp + 0x14]
push 6
push edx
lea ecx, [esi + 0xcf020]
mov dword [0x17cdcc4], 0xff
mov byte [esp + 0x1c], 0
mov byte [esp + 0x1d], 4
mov byte [esp + 0x1e], 0x31
mov byte [esp + 0x1f], 0xb8
mov byte [esp + 0x20], 1
mov byte [esp + 0x21], bl
call fcn.00420360
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
mov byte [0x17cdcb2], 0
lea eax, [esi + 0xd0a70]
push 0x4685ac
push eax
call fcn.004442af
add esp, 8
mov ecx, esi
push 0
call fcn.00447b9e
lea ecx, [esi + 0x74]
call fcn.00401b00
mov ecx, eax
lea edx, [esp + 0x14]
shr ecx, 8
mov byte [esp + 0x1a], cl
push 8
push edx
lea ecx, [esi + 0xcf020]
mov byte [esp + 0x1c], 0
mov byte [esp + 0x1d], 6
mov byte [esp + 0x1e], 0x31
mov byte [esp + 0x1f], 0xb9
mov byte [esp + 0x20], 1
mov byte [esp + 0x21], 3
mov byte [esp + 0x23], al
call fcn.00420360
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push 0xdcdb9c
push 0
push 0x46859c
push 0x468590
call edi
push 0xdcdb9c
push 0
push 0x46857c
push 0x468590
mov ebx, eax
call edi
push 0xdcdb9c
push 0
push 0x46856c
push 0x468590
mov dword [esp + 0x20], eax
call edi
lea edi, [esi + 0x74]
mov dword [esp + 0x14], eax
mov ecx, edi
mov byte [esp + 0x1c], 0
mov byte [esp + 0x1d], 0xc
mov byte [esp + 0x1e], 0x31
mov byte [esp + 0x1f], 0xbb
mov byte [esp + 0x20], 1
mov byte [esp + 0x21], 3
call fcn.00401b00
shr eax, 8
mov ecx, edi
mov byte [esp + 0x22], al
call fcn.00401b00
mov byte [esp + 0x23], al
mov eax, ebx
sar eax, 0xd
mov byte [esp + 0x24], al
mov eax, dword [esp + 0x10]
mov ecx, ebx
and bl, 0x1f
sar ecx, 5
mov edx, eax
mov byte [esp + 0x25], cl
mov ecx, dword [esp + 0x14]
push 0xe
shl bl, 3
sar edx, 7
add bl, dl
mov edx, ecx
sar edx, 0x10
shl al, 1
add dl, al
mov eax, ecx
mov byte [esp + 0x2d], cl
lea ecx, [esp + 0x20]
sar eax, 8
push ecx
lea ecx, [esi + 0xcf020]
mov byte [esp + 0x2e], bl
mov byte [esp + 0x2f], dl
mov byte [esp + 0x30], al
call fcn.00420360
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
lea edx, [esp + 0x14]
push 6
push edx
lea ecx, [esi + 0xcf020]
mov byte [esp + 0x1c], 0
mov byte [esp + 0x1d], 4
mov byte [esp + 0x1e], 0x31
mov byte [esp + 0x1f], 0xba
mov byte [esp + 0x20], 1
mov byte [esp + 0x21], 3
call fcn.00420360
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
xor eax, eax
mov ebx, 3
mov al, byte [0xc6f8af]
mov edi, eax
cmp edi, ebx
jne 0x40da2c
mov ecx, dword [0xc6f8b0]
xor edx, edx
mov eax, ecx
mov dl, ch
and eax, 0xff
shl eax, 8
add eax, edx
jmp 0x40da91
cmp edi, 4
jne 0x40da56
mov ecx, dword [0xc6f8b0]
xor edx, edx
mov eax, ecx
mov dl, ch
and eax, 0xff
xor ecx, ecx
mov cl, byte [0xc6f8b2]
shl eax, 8
add eax, edx
shl eax, 8
add eax, ecx
jmp 0x40da91
cmp edi, 5
jne 0x40da8d
mov ecx, dword [0xc6f8b0]
xor edx, edx
mov eax, ecx
mov dl, ch
and eax, 0xff
xor ecx, ecx
mov cl, byte [0xc6f8b2]
shl eax, 8
add eax, edx
xor edx, edx
mov dl, byte [0xc6f8b3]
shl eax, 8
add eax, ecx
shl eax, 8
add eax, edx
jmp 0x40da91
mov eax, dword [esp + 0x14]
push eax
push eax
lea ecx, [esi + 0x74]
call fcn.00401b00
and eax, 0xff
push eax
lea eax, [esp + 0x38]
push 0x468540
push eax
call fcn.00428a3e
add esp, 0x14
lea ecx, [esp + 0x2c]
push 0
push 0
push ecx
mov ecx, esi
call fcn.0040a390
mov al, byte [edi + 0xc6f8b0]
lea edi, [edi + 0xc6f8b0]
xor ebp, ebp
cmp al, 0xff
je 0x40dafd
cmp ebp, 8
jg 0x40dafd
xor edx, edx
xor eax, eax
mov dl, byte [edi + 2]
mov al, byte [edi + 1]
xor ecx, ecx
push ebp
mov cl, byte [edi]
push edx
push eax
push ecx
mov ecx, esi
call fcn.0040db50
mov al, byte [edi + ebx]
add edi, ebx
inc ebp
cmp al, 0xff
jne 0x40dad5
lea edx, [esp + 0x14]
push 6
push edx
lea ecx, [esi + 0xcf020]
mov byte [esp + 0x1c], 0
mov byte [esp + 0x1d], 4
mov byte [esp + 0x1e], 0x32
mov byte [esp + 0x1f], 0xb8
mov byte [esp + 0x20], 1
mov byte [esp + 0x21], bl
call fcn.00420360
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret