Function at 0x402cd4
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbd0
mov dword [ebp - 0x24], 1
cmp dword [ebp + 0x14], 0
je 0x402eb5
push 0x3e7
lea eax, [ebp - 0x41c]
push eax
push dword [0x44f8e0]
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x41c]
push edx
call fcn.004416fd
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x402d36
mov byte [0x4652d5], 0
mov byte [0x46543d], 0
mov dword [ebp - 0x10], 0x4652d5
jmp 0x402d4c
mov ecx, dword [ebp - 4]
mov byte [ecx], 0
lea eax, [ebp - 0x41c]
push eax
call fcn.0040292c
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 + 0xf44278], 0
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0xb
jl 0x402d51
mov byte [0xf446dc], 0
xor eax, eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x402d8e
push 0x4516fa
lea edx, [ebp - 0x430]
push edx
call fcn.004415c8
add esp, 8
jmp 0x402daa
push dword [ebp - 0x14]
push 0x4516fa
push 0x455713
lea ecx, [ebp - 0x430]
push ecx
call fcn.00444f70
add esp, 0x10
push dword [ebp - 0x10]
push 0x65
imul eax, dword [ebp - 0x14], 0x66
add eax, 0xf44278
push eax
push 0x455718
lea edx, [ebp - 0x430]
push edx
push str.PCDOCW
call sub.KERNEL32.DLL_GetPrivateProfileStringA
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0xb
jl 0x402d72
cmp byte [0xf44278], 0
jne 0x402de7
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 + 0xf442dc], 0
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0xb
jl 0x402dec
mov byte [0xf446dc], 0
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
inc eax
push eax
push 0x4516fd
push 0x455719
lea edx, [ebp - 0x430]
push edx
call fcn.00444f70
add esp, 0x10
push dword [ebp - 0x10]
push 0x135
movsx ecx, byte [0xf446dc]
imul eax, ecx, 0x136
add eax, 0xf446dd
push eax
push 0x45571e
lea edx, [ebp - 0x430]
push edx
push str.PCDOCW
call sub.KERNEL32.DLL_GetPrivateProfileStringA
movsx ecx, byte [0xf446dc]
imul eax, ecx, 0x9b
cmp byte [eax*2 + 0xf446dd], 0
je 0x402e7a
inc byte [0xf446dc]
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0xa
jl 0x402e0d
cmp byte [0xf446dc], 0
jne 0x402eb5
push str.Word.RTF.8
mov dl, byte [0xf446dc]
inc byte [0xf446dc]
movsx ecx, dl
imul eax, ecx, 0x136
add eax, 0xf446dd
push eax
call fcn.004415c8
add esp, 8
cmp dword [ebp + 8], 0
je 0x402f9d
cmp dword [ebp + 0x14], 0
je 0x402eea
push dword [ebp - 0x10]
push 0x3e7
lea edx, [ebp - 0x41c]
push edx
push 0x45572a
push 0x4516f7
push str.PCDOCW
call sub.KERNEL32.DLL_GetPrivateProfileStringA
jmp 0x402efc
push dword [ebp + 0xc]
lea ecx, [ebp - 0x41c]
push ecx
call fcn.004415c8
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.00404f2c
add esp, 0x1c
test eax, eax
je 0x402f56
push 0xf44278
call fcn.00404fcc
pop ecx
cmp ax, word [ebp - 0x28]
jne 0x402f56
cmp word [ebp - 0x2a], 0
je 0x402f48
call fcn.004028d4
cmp ax, word [ebp - 0x2a]
jne 0x402f56
cmp dword [ebp - 0x34], 3
jne 0x402f56
test word [ebp - 0x26], 0x35f
jne 0x402f6d
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 0x402f8f
lea edx, [ebp - 0x41c]
push edx
push dword [ebp + 0xc]
call fcn.004415c8
add esp, 8
cmp dword [ebp + 0x10], 0
je 0x402f9d
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