Function at 0x40dbec
Capabilities:
Get graphical window text
Read .ini file
Set registry value

Disassembly:
mov eax, 0x428621
call fcn.0041b8d0
sub esp, 0x184
push ebx
push esi
push edi
mov ebx, ecx
xor esi, esi
push esi
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x14], ebx
call fcn.004133d0
mov dword [ebp - 4], esi
push esi
lea ecx, [ebp - 0x38]
call fcn.004133d0
mov byte [ebp - 4], 1
add ebx, 4
mov eax, dword [ebx]
push esi
lea ecx, [ebp - 0x58]
mov dword [0x42fc44], eax
call fcn.004133d0
mov byte [ebp - 4], 2
push 0x302f
lea ecx, [ebp - 0x28]
call fcn.004133d0
mov edi, eax
mov byte [ebp - 4], 3
push 0x3031
lea ecx, [ebp - 0x78]
call fcn.004133d0
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 4
push 0x3017
lea ecx, [ebp - 0x88]
call fcn.004133d0
mov byte [ebp - 4], 5
mov ecx, dword [edi + 4]
cmp ecx, esi
mov esi, 0x401650
jne 0x40dc7f
mov ecx, esi
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 4]
test edx, edx
jne 0x40dc8b
mov edx, esi
mov eax, dword [eax + 4]
test eax, eax
jne 0x40dc94
mov eax, esi
push ecx
push 0x105
lea ecx, [ebp - 0x190]
push ecx
push esi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x88]
call fcn.0041341e
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x78]
call fcn.0041341e
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.0041341e
or ecx, 0xffffffff
xor eax, eax
lea edi, [ebp - 0x190]
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40dd52
xor edi, edi
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], 6
lea eax, [ebp - 0x190]
push eax
lea eax, [ebp - 0x58]
push 0x3030
push eax
call fcn.00413429
mov eax, dword [ebp - 0x54]
add esp, 0xc
cmp eax, edi
jne 0x40dd0d
mov eax, esi
push edi
push edi
push 0x2001f
push edi
push edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x10]
call fcn.0040750c
cmp eax, edi
jne 0x40dd46
push 4
lea eax, [ebp - 0x18]
push eax
push 4
push edi
push 0x401e5c
push dword [ebp - 0x10]
mov dword [ebp - 0x18], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.00404bd1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.0041341e
push 1
call fcn.004107f9
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push eax
push 1
push 0x80
push dword [ebx]
call edi
push 0x42e128
lea eax, [ebp - 0x38]
push 0x1003
push eax
call fcn.00413429
add esp, 0xc
cmp dword [ebp - 0x34], 0
je 0x40dd9d
mov esi, dword [ebp - 0x34]
push esi
push dword [ebx]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x1dc]
test eax, eax
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 0x10], eax
je 0x40de44
push 0xc8
push dword [ebx]
call esi
push dword [ebp - 0x10]
push 0
push 0x920b
push eax
call edi
push 0xc9
push dword [ebx]
call esi
push dword [ebp - 0x10]
push 0
push 0x920b
push eax
call edi
push 0xca
push dword [ebx]
call esi
push dword [ebp - 0x10]
push 0
push 0x920b
push eax
call edi
push 0xcb
push dword [ebx]
call esi
push dword [ebp - 0x10]
push 0
push 0x920b
push eax
call edi
push 0xcc
push dword [ebx]
call esi
push dword [ebp - 0x10]
push 0
push 0x920b
push eax
call edi
push 0xea
push dword [ebx]
call esi
push dword [ebp - 0x10]
push 0
push 0x920b
push eax
call edi
mov eax, dword [ebp - 0x34]
test eax, eax
jne 0x40de50
mov eax, 0x401650
push eax
lea eax, [ebp - 0x68]
push 0x1000
push eax
call fcn.00413429
mov eax, dword [ebp - 0x64]
add esp, 0xc
test eax, eax
jne 0x40de6e
mov eax, 0x401650
push eax
push 0xc8
push dword [ebx]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
push 0
mov ecx, ebx
call fcn.004078f3
mov ecx, dword [ebp - 0x14]
push 1
call fcn.00408191
push 0x1002
lea ecx, [ebp - 0x28]
call fcn.004133d0
mov byte [ebp - 4], 7
mov eax, dword [eax + 4]
test eax, eax
jne 0x40deac
mov eax, 0x401650
mov ecx, dword [ebp - 0x14]
push 1
push eax
push 0xcc
call fcn.00407edd
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.0041341e
push 0x1062
lea ecx, [ebp - 0x28]
call fcn.004133d0
mov byte [ebp - 4], 8
mov eax, dword [eax + 4]
test eax, eax
jne 0x40dee5
mov eax, 0x401650
mov ecx, dword [ebp - 0x14]
push 1
push eax
push 0xea
call fcn.00407edd
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.0041341e
mov ecx, dword [ebp - 0x14]
call fcn.0040da05
push 0
push 0xd
push 0x920e
push 0xc9
push dword [ebx]
call esi
push eax
call edi
push 0
push 0xd
push 0x920e
push 0xca
push dword [ebx]
call esi
push eax
call edi
push 0
push 0xd
push 0x920e
push 0xcb
push dword [ebx]
call esi
push eax
call edi
push 0
push 0xd
push 0x920e
push 0xcc
push dword [ebx]
call esi
push eax
call edi
push 0
push 0xd
push 0x920e
push 0xea
push dword [ebx]
call esi
push eax
call edi
push 0xc8
push dword [ebx]
call esi
lea ecx, [ebp - 0x48]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x44]
mov dword [ebp - 0x18], eax
fild dword [ebp - 0x18]
fmul dword [0x401e58]
fmul dword [0x401e54]
call fcn.0041c850
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 0x48]
mov dword [ebp - 0x18], eax
fild dword [ebp - 0x18]
fmul dword [0x401e50]
fmul dword [0x401e4c]
call fcn.0041c850
push 6
push dword [ebp - 0x10]
push eax
xor eax, eax
push eax
push eax
push eax
push dword [ebx]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 0x14]
call fcn.00408ce9
mov ecx, dword [ebp - 0x14]
add ecx, 0x78
mov eax, dword [ecx]
call dword [eax + 4]
test eax, eax
je 0x40dff4
push 0xcb
jmp 0x40e00f
mov ecx, dword [ebp - 0x14]
add ecx, 0x4c
mov eax, dword [ecx]
call dword [eax + 4]
test eax, eax
je 0x40e00a
push 0xca
jmp 0x40e00f
push 0xc9
push dword [ebx]
call esi
push 0
push 1
push 0x9208
push eax
call edi
and byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.0041341e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.0041341e
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10