Function at 0x402840
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x83c
mov eax, dword [0x40b014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x32
lea eax, [ebp - 0x38]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x400
lea eax, [ebp - 0x838]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x400
lea eax, [ebp - 0x438]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [0x411a2c]
add esp, 0x24
push 0
push 0
push 0x184
push dword [eax + 0xd0]
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, str.Single
call fcn.00401d20
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
xor esi, esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [ebp - 0x83c], eax
test eax, eax
jle 0x402a84
nop dword [eax]
push esi
lea eax, [ebp - 0x38]
push str.Old_String_d
push eax
call fcn.00405530
add esp, 0xc
lea eax, [ebp - 0x838]
push 0x40b838
push 0x400
push eax
push str.NotFind
lea eax, [ebp - 0x38]
push eax
push str.Single
call ebx
mov eax, dword [0x411a2c]
lea ecx, [ebp - 0x838]
push ecx
push 0
push 0
push 0x18b
push dword [eax + 0xd0]
call dword [sym.imp.USER32.dll_SendMessageA]
push eax
lea eax, [ebp - 0x438]
push 0x4079ac
push eax
call fcn.00405530
push esi
lea eax, [ebp - 0x38]
push str.New_String_d
push eax
call fcn.00405530
add esp, 0x1c
lea eax, [ebp - 0x838]
push 0x40b838
push 0x400
push eax
push str.NotFind
lea eax, [ebp - 0x38]
push eax
push str.Single
call ebx
lea ecx, [ebp - 0x438]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402972
lea eax, [ebp - 0x838]
sub ecx, edx
push eax
mov eax, 0x400
sub eax, ecx
push eax
lea eax, [ebp - 0x438]
push eax
call edi
push esi
lea eax, [ebp - 0x38]
push str.Old_vkCode_d
push eax
call fcn.00405530
add esp, 0x18
lea eax, [ebp - 0x838]
push 0x40b838
push 0x400
push eax
push str.NotFind
lea eax, [ebp - 0x38]
push eax
push str.Single
call ebx
lea ecx, [ebp - 0x438]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4029d0
sub ecx, edx
mov eax, 0x400
sub eax, ecx
push 0x4079c0
push eax
lea eax, [ebp - 0x438]
push eax
call edi
lea ecx, [ebp - 0x438]
add esp, 0xc
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402a00
lea eax, [ebp - 0x838]
sub ecx, edx
push eax
mov eax, 0x400
sub eax, ecx
push eax
lea eax, [ebp - 0x438]
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x438]
push eax
mov eax, dword [0x411a2c]
push 0
push 0x180
push dword [eax + 0xd0]
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [0x411a2c]
push 0
push 0
push 0x18b
push dword [eax + 0xd0]
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
dec eax
push eax
mov eax, dword [0x411a2c]
push 0x186
push dword [eax + 0xd0]
call dword [sym.imp.USER32.dll_SendMessageA]
inc esi
cmp esi, dword [ebp - 0x83c]
jl 0x4028d0
mov ecx, str.Repeatedly
call fcn.00401d20
xor esi, esi
mov dword [ebp - 0x83c], eax
test eax, eax
jle 0x402c54
nop
push esi
lea eax, [ebp - 0x38]
push str.Old_String_d
push eax
call fcn.00405530
add esp, 0xc
lea eax, [ebp - 0x838]
push 0x40b838
push 0x400
push eax
push str.NotFind
lea eax, [ebp - 0x38]
push eax
push str.Repeatedly
call ebx
mov eax, dword [0x411a2c]
lea ecx, [ebp - 0x838]
push ecx
push 0
push 0
push 0x18b
push dword [eax + 0xd0]
call dword [sym.imp.USER32.dll_SendMessageA]
push eax
lea eax, [ebp - 0x438]
push str._.3d
push eax
call fcn.00405530
push esi
lea eax, [ebp - 0x38]
push str.New_String_d
push eax
call fcn.00405530
add esp, 0x1c
lea eax, [ebp - 0x838]
push 0x40b838
push 0x400
push eax
push str.NotFind
lea eax, [ebp - 0x38]
push eax
push str.Repeatedly
call ebx
lea ecx, [ebp - 0x438]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402b42
lea eax, [ebp - 0x838]
sub ecx, edx
push eax
mov eax, 0x400
sub eax, ecx
push eax
lea eax, [ebp - 0x438]
push eax
call edi
push esi
lea eax, [ebp - 0x38]
push str.Old_vkCode_d
push eax
call fcn.00405530
add esp, 0x18
lea eax, [ebp - 0x838]
push 0x40b838
push 0x400
push eax
push str.NotFind
lea eax, [ebp - 0x38]
push eax
push str.Repeatedly
call ebx
lea eax, [ebp - 0x438]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402ba0
sub eax, edx
mov ecx, 0x400
sub ecx, eax
lea eax, [ebp - 0x438]
push 0x4079c0
push ecx
push eax
call edi
lea ecx, [ebp - 0x438]
add esp, 0xc
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402bd0
lea eax, [ebp - 0x838]
sub ecx, edx
push eax
mov eax, 0x400
sub eax, ecx
push eax
lea eax, [ebp - 0x438]
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x438]
push eax
mov eax, dword [0x411a2c]
push 0
push 0x180
push dword [eax + 0xd0]
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [0x411a2c]
push 0
push 0
push 0x18b
push dword [eax + 0xd0]
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
dec eax
push eax
mov eax, dword [0x411a2c]
push 0x186
push dword [eax + 0xd0]
call dword [sym.imp.USER32.dll_SendMessageA]
inc esi
cmp esi, dword [ebp - 0x83c]
jl 0x402aa0
push 0x40b838
push 0x32
lea eax, [ebp - 0x38]
push eax
push str.NotFind
push str.Name
push str.ProcessName
call ebx
pop edi
pop esi
mov ecx, str.NotFind
lea eax, [ebp - 0x38]
pop ebx
nop dword [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x402ca0
test dl, dl
je 0x402c9c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x402ca0
add eax, 2
add ecx, 2
test dl, dl
jne 0x402c80
xor eax, eax
jmp 0x402ca5
sbb eax, eax
or eax, 1
test eax, eax
je 0x402cbe
mov ecx, dword [0x411a2c]
lea eax, [ebp - 0x38]
push eax
push 0x3f7
call dword [sym.imp.mfc140.dll_Ordinal_13407]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.004059ab
mov esp, ebp
pop ebp
ret