Function at 0x401c70
Capabilities:
Get graphical window text
Read .ini file

Disassembly:
mov eax, 0x10ac
call fcn.00405f20
mov eax, dword [0x41b00c]
xor eax, esp
mov dword [esp + 0x10a8], eax
mov eax, dword [esp + 0x10b0]
cmp eax, 0x3ef
push ebx
push edi
mov ebx, edx
jg 0x401e5d
cmp eax, 0x3ee
jge 0x401dad
sub eax, 1
je 0x401cd7
sub eax, 1
jne 0x401eec
push 2
push esi
call dword [sym.imp.USER32.dll_EndDialog]
pop edi
pop ebx
mov ecx, dword [esp + 0x10a8]
xor ecx, esp
call fcn.00405622
add esp, 0x10ac
ret
push 0x40
lea eax, [esp + 0x34]
push eax
push 0x3f0
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea ecx, [esp + 0x30]
push ecx
call fcn.0040631d
lea edx, [eax - 2]
add esp, 4
cmp edx, 0xbebc1fe
ja 0x401d31
mov ecx, dword [0x41c288]
push 1
push esi
mov dword [ecx], eax
call dword [sym.imp.USER32.dll_EndDialog]
pop edi
pop ebx
mov ecx, dword [esp + 0x10a8]
xor ecx, esp
call fcn.00405622
add esp, 0x10ac
ret
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0x41c728
push 0x400
lea edx, [esp + 0xb8]
push edx
push 0x414414
push str.TITLE_GROUPID_ERROR
push str.USB_REGIST
call edi
push 0x41c728
push 0x400
lea eax, [esp + 0x8b8]
push eax
push 0x414414
push str.GROUPID_OUTRANGE
push str.USB_REGIST
call edi
push 0x10
lea ecx, [esp + 0xb4]
push ecx
lea edx, [esp + 0x8b8]
push edx
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop ebx
mov ecx, dword [esp + 0x10a8]
xor ecx, esp
call fcn.00405622
add esp, 0x10ac
ret
test ecx, ecx
jne 0x401eec
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push ecx
push ecx
push pe_nt_image_headers32
push 0x3ef
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 1
jne 0x401e19
push eax
push 0x3f4
push esi
call edi
mov ebx, dword [sym.imp.USER32.dll_EnableWindow]
push eax
call ebx
push 1
push 0x3f0
push esi
call edi
push eax
call ebx
push 1
push 0x3f3
push esi
call edi
push eax
call ebx
pop edi
pop ebx
mov ecx, dword [esp + 0x10a8]
xor ecx, esp
call fcn.00405622
add esp, 0x10ac
ret
push 0
push 0x3f4
push esi
call edi
mov ebx, dword [sym.imp.USER32.dll_EnableWindow]
push eax
call ebx
push 0
push 0x3f0
push esi
call edi
push eax
call ebx
push 0
push 0x3f3
push esi
call edi
push eax
call ebx
pop edi
pop ebx
mov ecx, dword [esp + 0x10a8]
xor ecx, esp
call fcn.00405622
add esp, 0x10ac
ret
cmp eax, 0x3f0
jne 0x401eec
cmp ecx, 0x200
jne 0x401eec
push 0x10
lea eax, [esp + 0x14]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea ecx, [esp + 0x10]
push ecx
call fcn.00406333
add esp, 4
lea edx, [esp + 8]
push edx
mov edi, eax
lea eax, [esp + 0x10]
push eax
push 0x470
push 0x3f3
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esp + 8]
cmp eax, edi
mov ecx, eax
jl 0x401ebb
mov ecx, edi
mov edx, dword [esp + 0xc]
cmp edx, ecx
jle 0x401ec7
mov edi, edx
jmp 0x401ecd
cmp eax, edi
jge 0x401ecd
mov edi, eax
push edi
lea ecx, [esp + 0x14]
push 0x414588
push ecx
call fcn.00401c50
add esp, 0xc
lea edx, [esp + 0x10]
push edx
push ebx
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [esp + 0x10b0]
pop edi
pop ebx
xor ecx, esp
call fcn.00405622
add esp, 0x10ac
ret