Function at 0x62a847c0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
push edi
mov edi, edx
push esi
push ebx
sub esp, 0x17c
test eax, eax
je 0x62a84838
lea eax, [esp + 0x44]
xor ecx, ecx
mov dword [esp + 0x1c], eax
xor eax, eax
xor ebx, ebx
mov dword [esp + 0xc], eax
xor eax, eax
xor ebp, ebp
mov dword [esp + 8], eax
mov eax, str.SoftwareODBCODBC.INI
mov esi, 0xf003f
mov dword [esp + 4], eax
mov eax, dword [sym.imp.advapi32.dll_RegCreateKeyExA]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebp
mov dword [esp], 0x80000001
mov dword [esp + 0x3c], eax
call eax
mov edx, str.user
sub esp, 0x24
test eax, eax
mov dword [esp + 0x38], edx
jne 0x62a84892
mov eax, 0x1f
jmp 0x62a848c5
xor eax, eax
xor edx, edx
mov dword [esp + 0x20], eax
lea eax, [esp + 0x44]
mov ecx, 0xf003f
mov dword [esp + 0x1c], eax
mov eax, str.SoftwareODBCODBC.INI
xor ebx, ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.advapi32.dll_RegCreateKeyExA]
xor esi, esi
mov dword [esp + 0x18], edx
xor ebp, ebp
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebp
mov dword [esp], 0x80000002
mov dword [esp + 0x3c], eax
call eax
mov edx, str.system
sub esp, 0x24
test eax, eax
mov dword [esp + 0x38], edx
je 0x62a848c0
movzx edx, byte [0x62a98028]
test dl, 8
jne 0x62a84b30
and dl, 4
jne 0x62a84aed
add esp, 0x17c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 0x20
lea ebx, [esp + 0x4f]
mov edx, 1
mov dword [esp + 0x34], edx
lea esi, [esp + 0x70]
lea ebp, [esp + 0x42]
jmp 0x62a848f8
xor eax, eax
test byte [0x62a98028], 4
mov dword [esp + 0x34], eax
jne 0x62a84a30
mov eax, 1
mov dword [esp + 0x1c], ebp
lea ecx, [esp + 0x40]
mov edx, 0x100
mov dword [esp + 0x10], ecx
mov ecx, 0x21
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], ecx
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], edi
call sym.odbc32.dll_SQLDataSources
sub esp, 0x20
cmp ax, 1
movsx edx, ax
ja 0x62a84a70
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_strlen]
movsx edx, word [esp + 0x40]
cmp edx, eax
jne 0x62a848e0
mov edx, esi
mov ecx, dword [edx]
add edx, 4
lea eax, [ecx - 0x1010101]
not ecx
and eax, ecx
and eax, 0x80808080
je 0x62a8494e
mov ecx, eax
shr ecx, 0x10
test eax, 0x8080
cmove eax, ecx
lea ecx, [edx + 2]
cmove edx, ecx
mov cl, al
add cl, al
movsx eax, word [esp + 0x42]
sbb edx, 3
sub edx, esi
cmp eax, edx
jne 0x62a848e0
xor eax, eax
xor edx, edx
mov dword [esp + 0x20], eax
lea eax, [esp + 0x48]
mov ecx, 0xf003f
mov dword [esp + 0x1c], eax
xor eax, eax
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], ecx
mov dword [esp + 4], ebx
mov dword [esp], eax
mov eax, dword [esp + 0x3c]
call eax
sub esp, 0x24
test eax, eax
je 0x62a84b70
xor edx, edx
test byte [0x62a98028], 8
mov dword [esp + 0x34], edx
je 0x62a848f3
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x38]
mov ecx, 0x62a98028
mov dword [esp + 0x18], ebx
mov eax, str.Error__ld_opening__s_DSN_key__s_n
mov dword [esp + 0xc], eax
mov dword [esp + 4], ecx
mov dword [esp + 0x14], edx
mov edx, str.ODBC_ReplicateODBCToRegistry
mov dword [esp + 8], edx
mov dword [esp], 3
call sym._wine_dbg_log
jmp 0x62a848f3
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0x38]
mov dword [esp + 0x14], ebx
mov dword [esp], 2
mov dword [esp + 0x10], eax
mov eax, str.Unusually_long__s_data_source_name__s___s__not_replicated_n
mov dword [esp + 0xc], eax
mov eax, str.ODBC_ReplicateODBCToRegistry
mov dword [esp + 8], eax
mov eax, 0x62a98028
mov dword [esp + 4], eax
call sym._wine_dbg_log
jmp 0x62a848f3
cmp edx, 0x64
je 0x62a84c28
test byte [0x62a98028], 8
jne 0x62a84c60
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
test eax, eax
je 0x62a84add
movzx edx, byte [0x62a98028]
test dl, 8
je 0x62a848a2
mov esi, dword [esp + 0x38]
mov ecx, str.Error__ld_closing__s_ODBC.INI_registry_key_n
mov ebx, str.ODBC_ReplicateODBCToRegistry
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 8], ebx
mov dword [esp + 0x14], esi
mov esi, 0x62a98028
mov dword [esp + 4], esi
mov dword [esp], 3
call sym._wine_dbg_log
movzx edx, byte [0x62a98028]
and dl, 4
je 0x62a848ab
mov eax, dword [esp + 0x38]
mov edi, str.May_not_have_replicated_all__s_ODBC_DSNs_to_the_registry_n
mov ebp, str.ODBC_ReplicateODBCToRegistry
mov dword [esp + 0xc], edi
mov dword [esp + 8], ebp
mov dword [esp], 2
mov dword [esp + 0x10], eax
mov eax, 0x62a98028
mov dword [esp + 4], eax
call sym._wine_dbg_log
add esp, 0x17c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x10], eax
mov esi, dword [esp + 0x38]
mov eax, str.Error__ld_creating_opening__s_ODBC.INI_registry_key_n
mov dword [esp + 0xc], eax
mov eax, str.ODBC_ReplicateODBCToRegistry
mov dword [esp + 8], eax
mov eax, 0x62a98028
mov dword [esp + 4], eax
mov dword [esp + 0x14], esi
mov dword [esp], 3
call sym._wine_dbg_log
movzx edx, byte [0x62a98028]
jmp 0x62a848a2
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, str.Driver
mov dword [esp + 4], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x14], ecx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
sub esp, 0x18
cmp eax, 2
je 0x62a84c98
test eax, eax
je 0x62a84bc1
test byte [0x62a98028], 8
jne 0x62a84d58
xor eax, eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x48]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
test eax, eax
je 0x62a848f3
test byte [0x62a98028], 8
je 0x62a848f3
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x38]
mov eax, str.ODBC_ReplicateODBCToRegistry
mov dword [esp + 8], eax
mov ecx, str.Error__ld_closing__s_DSN_key__s_n
mov eax, 0x62a98028
mov dword [esp + 0x18], ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 4], eax
mov dword [esp], 3
call sym._wine_dbg_log
jmp 0x62a848f3
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
test eax, eax
je 0x62a84c49
test byte [0x62a98028], 8
jne 0x62a84d20
mov eax, dword [esp + 0x34]
test eax, eax
je 0x62a84add
add esp, 0x17c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x38]
mov esi, str.Error__d_enumerating__s_datasources_n
mov edi, str.ODBC_ReplicateODBCToRegistry
mov dword [esp + 0x10], edx
mov ebp, 0x62a98028
mov dword [esp + 0xc], esi
mov dword [esp + 8], edi
mov dword [esp + 0x14], eax
mov dword [esp + 4], ebp
mov dword [esp], 3
call sym._wine_dbg_log
jmp 0x62a84a86
mov dword [esp + 0x10], esi
movsx eax, word [esp + 0x42]
mov edx, str.Driver
mov dword [esp + 4], edx
mov dword [esp + 0x14], eax
mov eax, 1
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, dword [esp + 0x48]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExA]
sub esp, 0x18
test eax, eax
je 0x62a84bc1
test byte [0x62a98028], 8
je 0x62a84bbb
mov dword [esp + 0x10], eax
mov eax, str.ODBC_ReplicateODBCToRegistry
mov ecx, str.Error__ld_replicating_description_of__s__s__n
mov dword [esp + 8], eax
mov eax, 0x62a98028
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 4], eax
mov dword [esp], 3
call sym._wine_dbg_log
xor eax, eax
mov dword [esp + 0x34], eax
jmp 0x62a84bc1
mov esi, dword [esp + 0x38]
mov edx, str.Error__ld_closing__s_ODBC.INI_registry_key_n
mov ecx, str.ODBC_ReplicateODBCToRegistry
mov dword [esp + 0x10], eax
mov ebx, 0x62a98028
mov dword [esp + 0xc], edx
mov dword [esp + 8], ecx
mov dword [esp + 0x14], esi
mov dword [esp + 4], ebx
mov dword [esp], 3
call sym._wine_dbg_log
jmp 0x62a84c49
mov dword [esp + 0x10], eax
mov eax, str.Error__ld_checking_for_description_of__s_n
mov edx, 0x62a98028
mov dword [esp + 0xc], eax
mov eax, str.ODBC_ReplicateODBCToRegistry
mov dword [esp + 0x14], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov dword [esp], 3
call sym._wine_dbg_log
jmp 0x62a84bbb