Function at 0x4038d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x31c
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
lea eax, [esp + 0x224]
push str.SoftwareMicrosoftIMEMIP_04x
mov edi, ecx
push eax
mov dword [esp + 0x1c], 1
call esi
xor ecx, ecx
lea edx, [esp + 0x224]
mov cx, word [edi + 0x14]
lea eax, [esp + 0x120]
push ecx
push edx
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp + 0x10]
xor ebx, ebx
lea edx, [esp + 0x120]
push ecx
push 0x20019
push ebx
push edx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403b8d
push ebp
lea eax, [esp + 0x124]
push str.Input
push eax
call esi
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x20]
push ecx
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x130]
push ebx
push ecx
push edx
mov dword [esp + 0x28], 0x103
call ebp
test eax, eax
je 0x403987
mov dword [esp + 0x18], ebx
jmp 0x40399f
mov eax, dword [esp + 0x10]
mov edx, dword [edi + 4]
lea ecx, [esp + 0x20]
push ecx
push edx
mov ecx, edi
mov byte [esp + eax + 0x28], bl
call fcn.00403680
lea eax, [esp + 0x124]
push str.TargetConverted
push eax
call esi
lea ecx, [esp + 0x10]
lea edx, [esp + 0x20]
push ecx
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x130]
push ebx
push ecx
push edx
mov dword [esp + 0x28], 0x103
call ebp
test eax, eax
je 0x4039df
mov dword [esp + 0x18], ebx
jmp 0x4039fa
mov edx, dword [edi + 4]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x20]
add edx, 0x1c
push ecx
push edx
mov ecx, edi
mov byte [esp + eax + 0x28], bl
call fcn.00403680
lea eax, [esp + 0x124]
push str.Converted
push eax
call esi
lea ecx, [esp + 0x10]
lea edx, [esp + 0x20]
push ecx
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x130]
push ebx
push ecx
push edx
mov dword [esp + 0x28], 0x103
call ebp
test eax, eax
je 0x403a3a
mov dword [esp + 0x18], ebx
jmp 0x403a55
mov edx, dword [edi + 4]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x20]
add edx, 0x38
push ecx
push edx
mov ecx, edi
mov byte [esp + eax + 0x28], bl
call fcn.00403680
lea eax, [esp + 0x124]
push str.TargetNotConverted
push eax
call esi
lea ecx, [esp + 0x10]
lea edx, [esp + 0x20]
push ecx
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x130]
push ebx
push ecx
push edx
mov dword [esp + 0x28], 0x103
call ebp
test eax, eax
je 0x403a95
mov dword [esp + 0x18], ebx
jmp 0x403ab0
mov edx, dword [edi + 4]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x20]
add edx, 0x54
push ecx
push edx
mov ecx, edi
mov byte [esp + eax + 0x28], bl
call fcn.00403680
lea eax, [esp + 0x124]
push str.InputError
push eax
call esi
lea ecx, [esp + 0x10]
lea edx, [esp + 0x20]
push ecx
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x130]
push ebx
push ecx
push edx
mov dword [esp + 0x28], 0x103
call ebp
test eax, eax
je 0x403af0
mov dword [esp + 0x18], ebx
jmp 0x403b0b
mov edx, dword [edi + 4]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x20]
add edx, 0x70
push ecx
push edx
mov ecx, edi
mov byte [esp + eax + 0x28], bl
call fcn.00403680
lea eax, [esp + 0x124]
push str.FixedConverted
push eax
call esi
lea ecx, [esp + 0x10]
lea edx, [esp + 0x20]
push ecx
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x130]
push ebx
push ecx
push edx
mov dword [esp + 0x28], 0x103
call ebp
test eax, eax
pop ebp
jne 0x403b68
mov edx, dword [edi + 4]
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x1c]
add edx, 0x8c
push ecx
push edx
mov ecx, edi
mov byte [esp + eax + 0x24], bl
call fcn.00403680
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0x11c]
pop edi
pop esi
mov dword [ecx], eax
mov eax, ebx
pop ebx
add esp, 0x31c
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x31c
ret