Function at 0x10037820
Capabilities:
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10073d8e
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x1007b958]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x24], edi
mov dword [edi], 0x100012d4
mov dword [edi + 0xb4], 0
mov dword [edi + 0xb8], 0
mov dword [edi + 0xbc], 0
mov dword [ebp - 4], 0
lea esi, [edi + 4]
push 0xc0
push 0
push esi
mov dword [edi + 0x10], 0
mov dword [edi + 0x50], 0
mov dword [edi + 0x5c], 0
mov dword [edi + 0x64], 0
mov dword [edi + 0x68], 0
mov dword [edi + 0x78], 0
mov dword [edi + 0x74], 0
call sub.msvcrt.dll_memset
mov eax, dword [ebp + 0x24]
add esp, 0xc
test eax, eax
je 0x100378ce
mov dword [eax], 0
mov eax, dword [ebp + 8]
mov edx, 7
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [esi], eax
mov eax, dword [ebp + 0x14]
mov dword [edi + 0x24], eax
mov eax, dword [ebp + 0x20]
mov dword [edi + 0x1c], ecx
mov dword [edi + 8], ebx
mov dword [edi + 0x18], eax
mov dword [edi + 0x28], 0xffffffff
mov word [edi + 0x34], dx
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
test eax, eax
je 0x10037926
mov ecx, dword [eax + 0x80]
push 6
push 1
call dword [sym.imp.MSDATL3.dll_public:_int___thiscall_CUtlProps2::IsRequiredTrue_unsigned_long_int__unsigned_long_int_]
mov ecx, dword [edi + 0x1c]
mov dword [edi + 0xc0], eax
push ebx
lea eax, [edi + 0x20]
push eax
push ecx
mov ecx, dword [ecx + 0x23c]
call fcn.10032910
mov ebx, dword [ebp + 0x1c]
mov dword [ebx], eax
test eax, eax
js 0x100380ee
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], 0x1e
push eax
push 0x1000d604
push SysReAllocString
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x100379ab
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 4
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
push 0x1000e36c
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1003799d
cmp dword [ebp - 0x1c], 4
jne 0x1003799d
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x100379ab
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [edi + 0x20]
push 0xfffffffffffffffb
push dword [ebp - 0x18]
push 0
push dword [eax + 0xc]
call dword [sym.imp.ODBC32.dll_SQLSetStmtAttrW]
cmp dword [edi + 0x18], 0
lea edx, [edi + 0xc]
je 0x100379e5
mov edx, dword [ebp + 0x20]
mov eax, dword [edx + 0x54]
mov dword [edi + 0xc], eax
mov eax, dword [edx + 0x44]
mov dword [edi + 0x14], eax
test eax, eax
jne 0x10037a25
mov dword [ebx], 0x80004005
jmp 0x100380ee
mov eax, dword [esi]
push edx
push 0x10016040
push eax
mov ecx, dword [eax]
mov esi, dword [ecx]
mov ecx, esi
call dword [0x1008147c]
call esi
mov dword [ebx], eax
lea edx, [edi + 0x14]
mov eax, dword [edi + 4]
push edx
push 0x10002f70
push eax
mov ecx, dword [eax]
mov esi, dword [ecx]
mov ecx, esi
call dword [0x1008147c]
call esi
mov dword [ebx], eax
cmp dword [edi + 0x14], 0
je 0x100380ee
mov eax, dword [edi + 0x1c]
mov ecx, dword [eax + 0xc]
lea eax, [ebp - 0x14]
push eax
push 4
lea eax, [edi + 0x80]
push eax
push 0x1d
push ecx
call dword [sym.imp.ODBC32.dll_SQLGetInfoW]
movzx edx, ax
mov ecx, edi
call fcn.10036900
test eax, eax
js 0x10037a75
mov eax, dword [edi + 0x1c]
mov ecx, dword [eax + 0xc]
lea eax, [ebp - 0x14]
push eax
push 4
lea eax, [edi + 0x84]
push eax
push 0x29
push ecx
call dword [sym.imp.ODBC32.dll_SQLGetInfoW]
movzx edx, ax
mov ecx, edi
call fcn.10036900
mov dword [ebx], eax
test eax, eax
js 0x100380ee
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x10037a9a
mov edx, edi
call fcn.100364b0
xor ecx, ecx
mov dword [edi + 0x50], eax
test eax, eax
setne cl
mov dword [edi + 0x54], ecx
mov ecx, edi
call fcn.10037150
mov dword [ebx], eax
test eax, eax
js 0x100380ee
mov ecx, edi
call fcn.10036cd0
mov dword [ebx], eax
test eax, eax
js 0x100380ee
cmp dword [edi + 0x50], 0
jne 0x10037b85
xor ebx, ebx
cmp ebx, dword [edi + 0x3c]
jae 0x10037b53
xor esi, esi
mov eax, dword [edi + 0xa4]
cmp dword [eax + ebx*4], 0
je 0x10037b45
mov edx, dword [edi + 0x40]
mov eax, dword [edx + esi + 0x3c]
test eax, eax
je 0x10037b45
cmp word [eax], 0
je 0x10037b45
mov ecx, dword [edi + 0x50]
test ecx, ecx
je 0x10037b34
cmp word [ecx], 0
je 0x10037b34
push eax
push ecx
call dword [sym.imp.msvcrt.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x10037b4e
mov edx, dword [edi + 0x40]
mov ecx, dword [edi + 0x4c]
mov edx, dword [edx + esi + 0x38]
call fcn.10037800
test eax, eax
jne 0x10037b4e
mov edx, dword [edi + 0x40]
mov ecx, dword [edi + 0x48]
mov edx, dword [edx + esi + 0x34]
call fcn.10037800
test eax, eax
jne 0x10037b4e
jmp 0x10037b45
mov dword [edi + 0x50], eax
mov eax, dword [edx + esi + 0x34]
mov dword [edi + 0x48], eax
mov eax, dword [edx + esi + 0x38]
mov dword [edi + 0x4c], eax
inc ebx
add esi, 0x5c
cmp ebx, dword [edi + 0x3c]
jb 0x10037ad3
cmp ebx, dword [edi + 0x3c]
jb 0x10037b60
mov eax, dword [edi + 0x50]
test eax, eax
je 0x10037b60
cmp word [eax], 0
jne 0x10037b82
mov eax, dword [ebp + 0x24]
mov dword [edi + 0x50], 0
test eax, eax
je 0x10037b74
mov dword [eax], 0x8ff
mov eax, dword [ebp + 0x1c]
mov dword [eax], 0x8000ffff
jmp 0x100380ee
mov ebx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x24]
mov ecx, edi
call fcn.10036fa0
mov dword [ebx], eax
test eax, eax
js 0x100380ee
cmp dword [edi + 0x18], 0
je 0x10037baa
mov eax, dword [ebp + 0x20]
mov eax, dword [eax + 0x2c]
mov dword [edi + 0x10], eax
jmp 0x10037bc7
mov ecx, dword [ebp + 8]
lea edx, [edi + 0x10]
push edx
push 0x10015f50
push ecx
mov eax, dword [ecx]
mov esi, dword [eax]
mov ecx, esi
call dword [0x1008147c]
call esi
mov dword [ebx], eax
mov eax, dword [edi + 0x3c]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
call fcn.10016cf0
mov dword [edi + 0x5c], eax
xor ecx, ecx
movzx eax, word [edi + 0x98]
mov edx, 0x34
mul edx
seto cl
neg ecx
or ecx, eax
call fcn.1002c482
mov dword [edi + 0x64], eax
test eax, eax
je 0x100380e8
cmp dword [edi + 0x5c], 0
je 0x100380e8
movzx ecx, word [edi + 0x98]
imul ecx, ecx, 0x34
push ecx
push 0
push eax
call sub.msvcrt.dll_memset
xor ecx, ecx
xor edx, edx
add esp, 0xc
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x18], edx
cmp dword [edi + 0x3c], ecx
jbe 0x10037dfd
xor ebx, ebx
mov dword [ebp - 0x20], edx
xor esi, esi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], esi
lea esp, [esp]
mov eax, dword [edi + 0xa4]
cmp dword [eax + ecx*4], 0
je 0x10037dde
mov eax, dword [edi + 0x40]
mov esi, 0x1000e538
mov ecx, dword [edi + 0x64]
test byte [eax + ebx + 0x30], 0x80
jne 0x10037d01
lea edi, [ecx + edx]
inc dword [ebp - 0x18]
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x14]
mov eax, dword [edi + 0x64]
mov dword [edx + eax + 0x1c], 6
mov eax, dword [edi + 0x40]
mov ecx, dword [edi + 0x64]
mov ax, word [eax + ebx + 0x20]
mov word [edx + ecx + 0x30], ax
mov eax, dword [edi + 0x40]
mov ecx, dword [edi + 0x64]
mov eax, dword [eax + ebx + 0x1c]
mov dword [edx + ecx], eax
lea ecx, [esi + 4]
mov eax, dword [edi + 0x64]
mov dword [edx + eax + 0xc], esi
mov eax, dword [edi + 0x64]
mov dword [edx + eax + 8], ecx
mov eax, dword [edi + 0x64]
mov dword [edx + eax + 0x28], 0
mov eax, dword [edi + 0x64]
mov dword [edx + eax + 0x20], 0
mov eax, dword [edi + 0x40]
mov ecx, dword [edi + 0x64]
movzx eax, byte [eax + ebx + 0x2c]
mov byte [edx + ecx + 0x32], al
mov eax, dword [edi + 0x40]
mov ecx, dword [edi + 0x64]
movzx eax, byte [eax + ebx + 0x2e]
mov byte [edx + ecx + 0x33], al
add edx, 0x34
mov dword [ebp - 0x20], edx
jmp 0x10037ddb
movzx eax, word [edi + 0x98]
dec eax
mov edx, dword [ebp - 0x1c]
imul ebx, eax, 0x34
push 0
lea edi, [ecx + ebx]
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x24]
mov eax, dword [edi + 0x64]
mov dword [ebx + eax + 0x1c], 6
mov eax, dword [edi + 0x40]
mov ecx, dword [edi + 0x64]
mov ax, word [eax + edx + 0x20]
mov word [ebx + ecx + 0x30], ax
mov eax, dword [edi + 0x40]
mov ecx, dword [edi + 0x64]
mov eax, dword [eax + edx + 0x1c]
mov dword [ebx + ecx], eax
mov eax, dword [edi + 0x64]
mov ecx, dword [ebp - 0x14]
mov dword [ebx + eax + 0xc], ecx
add ecx, 4
mov eax, dword [edi + 0x64]
mov dword [ebx + eax + 8], ecx
mov eax, dword [edi + 0x64]
mov dword [ebx + eax + 0x28], 0
mov eax, dword [edi + 0x64]
mov dword [ebx + eax + 0x20], 0
mov eax, dword [edi + 0x40]
mov ecx, dword [edi + 0x64]
movzx eax, byte [eax + edx + 0x2c]
mov byte [ebx + ecx + 0x32], al
mov eax, dword [edi + 0x40]
mov ecx, dword [edi + 0x64]
movzx eax, byte [eax + edx + 0x2e]
mov byte [ebx + ecx + 0x33], al
mov ecx, dword [edi + 0x60]
mov eax, dword [edi + 0x5c]
mov edx, dword [edi + 0x10]
lea eax, [eax + ecx*4]
mov esi, dword [edx]
push eax
mov eax, dword [edi + 0x64]
push 8
mov esi, dword [esi + 0x10]
add eax, ebx
push eax
push 1
push 2
push edx
mov ecx, esi
call dword [0x1008147c]
call esi
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], eax
mov ecx, dword [edi + 0x60]
mov eax, dword [edi + 0x5c]
cmp dword [eax + ecx*4], 0
je 0x100380ee
mov edx, dword [ebp - 0x20]
lea eax, [ecx + 1]
mov ebx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x14]
mov dword [edi + 0x60], eax
mov ecx, dword [ebp - 0x28]
inc ecx
add esi, 8
add ebx, 0x5c
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], ebx
cmp ecx, dword [edi + 0x3c]
jb 0x10037c50
mov ebx, dword [ebp + 0x1c]
mov edx, dword [ebp - 0x18]
mov eax, dword [edi + 0x10]
add edi, 0x58
mov ecx, dword [ebp - 0x24]
push 0
push edi
mov esi, dword [eax]
push 8
push dword [ecx + 0x64]
mov esi, dword [esi + 0x10]
mov ecx, esi
push edx
push 2
push eax
call dword [0x1008147c]
call esi
mov dword [ebx], eax
cmp dword [edi], 0
mov edi, dword [ebp - 0x24]
je 0x100380ee
mov eax, dword [edi + 0x3c]
xor ecx, ecx
mov esi, 4
mul esi
seto cl
neg ecx
or ecx, eax
call fcn.10016cf0
mov dword [edi + 0x68], eax
xor ecx, ecx
mov eax, dword [edi + 0x3c]
add eax, eax
mul esi
seto cl
neg ecx
or ecx, eax
call fcn.10016cf0
mov ecx, dword [edi + 0x68]
mov dword [edi + 0x78], eax
test ecx, ecx
je 0x100380e8
test eax, eax
je 0x100380e8
mov eax, dword [edi + 0x3c]
shl eax, 2
push eax
push 0
push ecx
call sub.msvcrt.dll_memset
mov eax, dword [edi + 0x3c]
shl eax, 3
push eax
push 0
push dword [edi + 0x78]
call sub.msvcrt.dll_memset
mov ecx, dword [edi + 0x3c]
mov eax, dword [edi + 0x78]
lea eax, [eax + ecx*4]
mov dword [edi + 0x7c], eax
movzx eax, word [edi + 0x98]
imul eax, eax, 0x34
push eax
push 0
push dword [edi + 0x64]
call sub.msvcrt.dll_memset
xor eax, eax
add esp, 0x24
mov dword [ebp - 0x14], eax
cmp dword [edi + 0x3c], eax
jbe 0x1003807c
xor ebx, ebx
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov edi, edi
lea edx, [eax*4]
mov eax, dword [edi + 0xa4]
cmp dword [edx + eax], 0
je 0x10038063
mov eax, dword [edi + 0x40]
test byte [eax + ecx + 0x30], 0x80
mov edx, dword [eax + ecx + 0x28]
mov dword [ebp - 0x20], edx
jne 0x10037f07
mov cx, word [eax + ecx + 0x54]
call fcn.10039a40
add edx, eax
mov dword [ebp - 0x20], edx
mov edi, dword [edi + 0x64]
mov ecx, 0xd
add edi, ebx
mov esi, 0x1000e538
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x1c]
mov eax, dword [edi + 0x64]
mov dword [ebx + eax + 0x1c], 1
mov eax, dword [edi + 0x40]
mov ecx, dword [edi + 0x64]
mov ax, word [eax + esi + 0x20]
mov word [ebx + ecx + 0x30], ax
mov eax, dword [edi + 0x40]
mov ecx, dword [edi + 0x64]
mov eax, dword [eax + esi + 0x1c]
mov dword [ebx + ecx], eax
mov eax, dword [edi + 0x64]
mov ecx, dword [ebp - 0x20]
mov dword [ebx + eax + 4], 0
mov eax, dword [edi + 0x64]
mov dword [ebx + eax + 0x28], edx
mov eax, dword [edi + 0x64]
mov dword [ebx + eax + 0x20], 0
mov eax, dword [edi + 0x40]
mov edx, dword [edi + 0x64]
movzx eax, byte [eax + esi + 0x2c]
mov byte [ebx + edx + 0x32], al
mov eax, dword [edi + 0x40]
mov edx, dword [edi + 0x64]
movzx eax, byte [eax + esi + 0x2e]
mov byte [ebx + edx + 0x33], al
cmp ecx, 0x2000
ja 0x10037f9b
mov edx, 4
call fcn.100399c0
mov dword [ebp - 0x18], eax
jmp 0x10037faf
mov eax, dword [edi + 0x40]
mov edx, 0x4000
mov dword [ebp - 0x18], 4
or word [eax + esi + 0x20], dx
mov eax, dword [edi + 0x40]
cmp dword [eax + esi + 0x58], 4
jl 0x10037fc8
mov eax, dword [edi + 0x64]
mov ecx, 0x81
mov word [ebx + eax + 0x30], cx
jmp 0x10037fe6
movzx edx, word [eax + esi + 0x20]
mov eax, dword [edi + 0x64]
cmp edx, 6
jne 0x10037fe1
mov ecx, 0x83
mov word [ebx + eax + 0x30], cx
jmp 0x10037fe6
mov word [ebx + eax + 0x30], dx
mov esi, dword [ebp - 0x14]
mov eax, dword [edi + 0x78]
mov ecx, dword [ebp - 0x2c]
lea edx, [esi*4]
mov dword [edx + eax], ecx
mov eax, dword [edi + 0x90]
mov ecx, dword [ebp - 0x18]
add dword [ebp - 0x2c], ecx
cmp dword [edx + eax], 0
jbe 0x10038019
mov eax, dword [edi + 0x7c]
mov esi, dword [ebp - 0x30]
mov dword [edx + eax], esi
add esi, ecx
mov dword [ebp - 0x30], esi
mov eax, dword [edi + 0x68]
mov ecx, dword [edi + 0x10]
add eax, edx
push 0
push eax
push dword [ebp - 0x18]
mov eax, dword [edi + 0x64]
mov esi, dword [ecx]
add eax, ebx
push eax
push 1
push 2
mov esi, dword [esi + 0x10]
push ecx
mov ecx, esi
call dword [0x1008147c]
call esi
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x14]
mov eax, dword [edi + 0x68]
lea edx, [ecx*4]
cmp dword [edx + eax], 0
je 0x100380ee
mov ecx, dword [ebp - 0x1c]
add ebx, 0x34
mov eax, dword [ebp - 0x14]
add ecx, 0x5c
inc eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], eax
cmp eax, dword [edi + 0x3c]
jb 0x10037ed0
mov ebx, dword [ebp + 0x1c]
mov eax, dword [ebp - 0x30]
mov esi, dword [ebp - 0x2c]
add eax, esi
push eax
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov dword [edi + 0x74], eax
test eax, eax
je 0x100380e8
mov ecx, dword [ebp - 0x30]
add ecx, esi
push ecx
push 0
push eax
call sub.msvcrt.dll_memset
xor edx, edx
add esp, 0xc
cmp dword [edi + 0x3c], edx
jbe 0x100380ee
lea ebx, [ebx]
mov eax, dword [edi + 0xa4]
cmp dword [eax + edx*4], 0
je 0x100380e0
mov eax, dword [edi + 0x78]
lea ecx, [eax + edx*4]
mov eax, dword [edi + 0x74]
add dword [ecx], eax
mov eax, dword [edi + 0x90]
cmp dword [eax + edx*4], 0
jbe 0x100380e0
mov eax, dword [edi + 0x7c]
lea ecx, [eax + edx*4]
mov eax, dword [edi + 0x74]
add eax, esi
add dword [ecx], eax
inc edx
cmp edx, dword [edi + 0x3c]
jb 0x100380b0
jmp 0x100380ee
mov dword [ebx], 0x8007000e
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100720f0
mov esp, ebp
pop ebp
ret 0x20