Function at 0x41c240
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x4ff94c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 0
push 0x188
mov esi, ecx
push 0x406
mov dword [ebp - 0x244], esi
call sub.mfc100u.dll_CWnd::SendDlgItemMessageW
movzx eax, ax
push 0
push eax
push 0x199
push 0x406
mov ecx, esi
call sub.mfc100u.dll_CWnd::SendDlgItemMessageW
mov ebx, dword [0x509e1c]
movzx eax, ax
movzx esi, al
shr eax, 8
movzx edi, al
test ebx, ebx
je 0x41c2b6
mov edi, edi
movsx ecx, word [ebx]
cmp ecx, esi
jne 0x41c2af
movsx edx, word [ebx + 2]
cmp edx, edi
je 0x41c310
mov ebx, dword [ebx + 0xc]
test ebx, ebx
jne 0x41c2a0
push 0x10
call dword [sym.imp.MSVCR100.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x41c2ec
push 0x30
push str.Pronto_Xi
push str.Cant_allocate_memory_
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b7f56
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov eax, dword [0x509e1c]
mov dword [ebx + 0xc], eax
mov dword [0x509e1c], ebx
mov word [ebx], si
mov word [ebx + 2], di
jmp 0x41c33a
mov eax, dword [ebx + 4]
test eax, eax
je 0x41c33a
movsx ecx, word [ebx + 8]
cmp ecx, dword [0x509e14]
jge 0x41c33a
push eax
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
xor edx, edx
mov dword [ebx + 4], 0
mov word [ebx + 8], dx
cmp dword [ebx + 4], 0
jne 0x41c361
mov eax, dword [0x509e14]
lea ecx, [eax*4]
push ecx
call dword [sym.imp.MSVCR100.dll_malloc]
add esp, 4
mov dword [ebx + 4], eax
test eax, eax
je 0x41c2c7
mov edx, dword [0x509e14]
mov ecx, dword [ebx + 4]
lea eax, [edx*4]
push eax
push 0x509ac0
push ecx
call sub.MSVCR100.dll_memcpy
movsx eax, word [ebx + 2]
mov dx, word [0x509e14]
add esp, 0xc
dec eax
mov word [ebx + 8], dx
je 0x41c3ca
dec eax
je 0x41c3b8
dec eax
je 0x41c3a6
movsx eax, word [ebx]
sub eax, 0x6f
push eax
push str.macro_f_d
jmp 0x41c3d6
movsx edx, word [ebx]
sub edx, 0x6f
push edx
push str.macro_csf_d
lea eax, [ebp - 0x24]
push eax
jmp 0x41c3da
movsx ecx, word [ebx]
sub ecx, 0x6f
push ecx
push str.macro_cf_d
lea edx, [ebp - 0x24]
push edx
jmp 0x41c3da
movsx eax, word [ebx]
sub eax, 0x6f
push eax
push str.macro_sf_d
lea ecx, [ebp - 0x24]
push ecx
call dword [sym.imp.MSVCR100.dll_sprintf]
xor ecx, ecx
xor edx, edx
add esp, 0xc
mov byte [ebp - 0x238], 0
mov dword [ebp - 0x23c], ecx
cmp dx, word [ebx + 8]
jge 0x41c47b
jmp 0x41c406
mov ecx, dword [ebp - 0x23c]
test ecx, ecx
jle 0x41c422
lea edi, [ebp - 0x238]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x41c411
mov ax, word [0x4cfd00]
mov word [edi], ax
mov edx, dword [ebx + 4]
mov eax, dword [edx + ecx*4]
push eax
lea ecx, [ebp - 0x38]
push 0x4ce1bc
push ecx
call dword [sym.imp.MSVCR100.dll_sprintf]
lea eax, [ebp - 0x38]
add esp, 0xc
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41c440
lea edi, [ebp - 0x238]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x41c450
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp - 0x23c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
movsx edx, word [ebx + 8]
inc eax
mov dword [ebp - 0x23c], eax
cmp eax, edx
jl 0x41c400
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x240]
push ecx
push 0
push 0x2001f
push 0
push 0x4dab4c
push 0
push str.SoftwarePRONTOSettings
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x41c4da
mov edx, dword [ebp - 0x244]
mov eax, dword [edx + 0x20]
push 0x30
push str.Pronto_Xi
push str.Cant_create_open_settings_registry_key
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b7f56
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x240]
push 0x201
lea ecx, [ebp - 0x238]
push ecx
push 1
push 0
lea edx, [ebp - 0x24]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x240]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b7f56
mov esp, ebp
pop ebp
ret