Function at 0x402cec
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbd0
mov dword [ebp - 0x24], 1
cmp dword [ebp + 0x14], 0
je 0x402ecd
push 0x3e7
lea eax, [ebp - 0x41c]
push eax
push dword [0x4528e0]
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x41c]
push edx
call fcn.00444491
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x402d4e
mov byte [0x468d05], 0
mov byte [0x468e6d], 0
mov dword [ebp - 0x10], 0x468d05
jmp 0x402d64
mov ecx, dword [ebp - 4]
mov byte [ecx], 0
lea eax, [ebp - 0x41c]
push eax
call fcn.00402944
pop ecx
mov dword [ebp - 0x10], eax
xor edx, edx
mov dword [ebp - 0x14], edx
imul ecx, dword [ebp - 0x14], 0x33
mov byte [ecx*2 + 0xf47ca8], 0
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0xa
jl 0x402d69
mov byte [0xf480a6], 0
xor eax, eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x402da6
push 0x4547e6
lea edx, [ebp - 0x430]
push edx
call fcn.0044435c
add esp, 8
jmp 0x402dc2
push dword [ebp - 0x14]
push 0x4547e6
push 0x458869
lea ecx, [ebp - 0x430]
push ecx
call fcn.00447d04
add esp, 0x10
push dword [ebp - 0x10]
push 0x65
imul eax, dword [ebp - 0x14], 0x66
add eax, 0xf47ca8
push eax
push 0x45886e
lea edx, [ebp - 0x430]
push edx
push 0x4547d8
call sub.KERNEL32.DLL_GetPrivateProfileStringA
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0xa
jl 0x402d8a
cmp byte [0xf47ca8], 0
jne 0x402dff
xor ecx, ecx
mov dword [ebp - 0x24], ecx
xor eax, eax
mov dword [ebp - 0x14], eax
imul edx, dword [ebp - 0x14], 0x33
mov byte [edx*2 + 0xf47d0c], 0
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0xa
jl 0x402e04
mov byte [0xf480a6], 0
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
inc eax
push eax
push 0x4547e9
push 0x45886f
lea edx, [ebp - 0x430]
push edx
call fcn.00447d04
add esp, 0x10
push dword [ebp - 0x10]
push 0x135
movsx ecx, byte [0xf480a6]
imul eax, ecx, 0x136
add eax, 0xf480a7
push eax
push 0x458874
lea edx, [ebp - 0x430]
push edx
push 0x4547d8
call sub.KERNEL32.DLL_GetPrivateProfileStringA
movsx ecx, byte [0xf480a6]
imul eax, ecx, 0x9b
cmp byte [eax*2 + 0xf480a7], 0
je 0x402e92
inc byte [0xf480a6]
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0xa
jl 0x402e25
cmp byte [0xf480a6], 0
jne 0x402ecd
push str.Word.RTF.8
mov dl, byte [0xf480a6]
inc byte [0xf480a6]
movsx ecx, dl
imul eax, ecx, 0x136
add eax, 0xf480a7
push eax
call fcn.0044435c
add esp, 8
cmp dword [ebp + 8], 0
je 0x402fb5
cmp dword [ebp + 0x14], 0
je 0x402f02
push dword [ebp - 0x10]
push 0x3e7
lea edx, [ebp - 0x41c]
push edx
push 0x458880
push 0x4547e3
push 0x4547d8
call sub.KERNEL32.DLL_GetPrivateProfileStringA
jmp 0x402f14
push dword [ebp + 0xc]
lea ecx, [ebp - 0x41c]
push ecx
call fcn.0044435c
add esp, 8
push 0
lea eax, [ebp - 0x34]
push eax
lea edx, [ebp - 0x30]
push edx
lea ecx, [ebp - 0x2a]
push ecx
lea eax, [ebp - 0x28]
push eax
lea edx, [ebp - 0x26]
push edx
lea ecx, [ebp - 0x41c]
push ecx
call fcn.00404f44
add esp, 0x1c
test eax, eax
je 0x402f6e
push 0xf47ca8
call fcn.00404fe4
pop ecx
cmp ax, word [ebp - 0x28]
jne 0x402f6e
cmp word [ebp - 0x2a], 0
je 0x402f60
call fcn.004028ec
cmp ax, word [ebp - 0x2a]
jne 0x402f6e
cmp dword [ebp - 0x34], 8
jne 0x402f6e
test word [ebp - 0x26], 0x35f
jne 0x402f85
xor eax, eax
mov dword [ebp - 0x24], eax
mov word [ebp - 0x26], 0
mov byte [ebp - 0x41c], 0
xor edx, edx
mov dword [ebp - 0x30], edx
mov ecx, dword [ebp + 8]
mov ax, word [ebp - 0x26]
mov word [ecx], ax
cmp dword [ebp + 0xc], 0
je 0x402fa7
lea edx, [ebp - 0x41c]
push edx
push dword [ebp + 0xc]
call fcn.0044435c
add esp, 8
cmp dword [ebp + 0x10], 0
je 0x402fb5
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x30]
mov dword [ecx], eax
mov eax, dword [ebp - 0x24]
mov esp, ebp
pop ebp
ret