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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007368e
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x1007b958]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], 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 ebx, [edi + 4]
push 0xc0
push 0
push ebx
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 0x100372eb
mov dword [eax], 0
mov eax, dword [ebp + 8]
mov edx, 7
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [ebx], 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], esi
mov dword [edi + 0x18], eax
mov dword [edi + 0x28], 0xffffffff
mov word [edi + 0x34], dx
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
test eax, eax
je 0x10037343
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 esi
lea eax, [edi + 0x20]
push eax
push ecx
mov ecx, dword [ecx + 0x23c]
call fcn.10032480
mov esi, dword [ebp + 0x1c]
mov dword [esi], eax
test eax, eax
js 0x10037b61
lea eax, [ebp - 0x10]
mov dword [ebp - 0x20], 0x1e
push eax
push 0x1000d604
push SysReAllocString
mov dword [ebp - 0x10], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x100373c8
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 4
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
push 0x1000e36c
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100373ba
cmp dword [ebp - 0x1c], 4
jne 0x100373ba
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x100373c8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [edi + 0x20]
push 0xfffffffffffffffb
push dword [ebp - 0x20]
push 0
push dword [eax + 0xc]
call dword [sym.imp.ODBC32.dll_SQLSetStmtAttrW]
cmp dword [edi + 0x18], 0
je 0x100373ff
mov ecx, dword [ebp + 0x20]
mov eax, dword [ecx + 0x54]
mov dword [edi + 0xc], eax
mov eax, dword [ecx + 0x44]
mov dword [edi + 0x14], eax
test eax, eax
jne 0x10037449
mov dword [esi], 0x80004005
jmp 0x10037b61
mov ecx, dword [ebx]
lea eax, [edi + 0xc]
push eax
push 0x10016040
push ecx
mov esi, dword [ecx]
mov esi, dword [esi]
mov ecx, esi
call dword [0x1008147c]
call esi
mov ecx, dword [ebp + 0x1c]
add edi, 0x14
push edi
push 0x10002f70
mov dword [ecx], eax
mov ecx, dword [ebx]
push ecx
mov eax, dword [ecx]
mov esi, dword [eax]
mov ecx, esi
call dword [0x1008147c]
call esi
mov esi, dword [ebp + 0x1c]
mov dword [esi], eax
cmp dword [edi], 0
je 0x10037b61
mov edi, dword [ebp - 0x14]
mov eax, dword [edi + 0x1c]
mov ecx, dword [eax + 0xc]
lea eax, [ebp - 0x10]
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.10036330
test eax, eax
js 0x10037499
mov eax, dword [edi + 0x1c]
mov ecx, dword [eax + 0xc]
lea eax, [ebp - 0x10]
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.10036330
mov dword [esi], eax
test eax, eax
js 0x10037b61
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x100374be
mov edx, edi
call fcn.10035f00
xor ecx, ecx
mov dword [edi + 0x50], eax
test eax, eax
setne cl
mov dword [edi + 0x54], ecx
mov ecx, edi
call fcn.10036b60
mov dword [esi], eax
test eax, eax
js 0x10037b61
mov ecx, edi
call fcn.100366e0
mov dword [esi], eax
test eax, eax
js 0x10037b61
cmp dword [edi + 0x50], 0
jne 0x100375c7
xor ebx, ebx
cmp ebx, dword [edi + 0x3c]
jae 0x1003759b
xor esi, esi
jmp 0x10037500
mov eax, dword [edi + 0xa4]
cmp dword [eax + ebx*4], 0
je 0x10037586
mov edx, dword [edi + 0x40]
mov eax, dword [edx + esi + 0x3c]
test eax, eax
je 0x10037586
cmp word [eax], 0
je 0x10037586
mov ecx, dword [edi + 0x50]
test ecx, ecx
je 0x10037575
cmp word [ecx], 0
je 0x10037575
push eax
push ecx
call dword [sym.imp.msvcrt.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x10037593
mov eax, dword [edi + 0x40]
mov ecx, dword [edi + 0x4c]
mov eax, dword [eax + esi + 0x38]
test ecx, ecx
jne 0x1003754d
neg eax
sbb eax, eax
jmp 0x1003755c
test eax, eax
je 0x10037593
push eax
push ecx
call dword [sym.imp.msvcrt.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x10037593
mov edx, dword [edi + 0x40]
mov ecx, dword [edi + 0x48]
mov edx, dword [edx + esi + 0x34]
call fcn.10037220
test eax, eax
jne 0x10037593
jmp 0x10037586
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 0x10037500
mov esi, dword [ebp + 0x1c]
cmp ebx, dword [edi + 0x3c]
jb 0x100375a8
mov eax, dword [edi + 0x50]
test eax, eax
je 0x100375a8
cmp word [eax], 0
jne 0x100375c7
mov eax, dword [ebp + 0x24]
mov dword [edi + 0x50], 0
test eax, eax
je 0x100375bc
mov dword [eax], 0x8ff
mov dword [esi], 0x8000ffff
jmp 0x10037b61
mov edx, dword [ebp + 0x24]
mov ecx, edi
call fcn.100369b0
mov dword [esi], eax
test eax, eax
js 0x10037b61
cmp dword [edi + 0x18], 0
je 0x100375ec
mov eax, dword [ebp + 0x20]
mov eax, dword [eax + 0x2c]
mov dword [edi + 0x10], eax
jmp 0x1003760c
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 ecx, dword [ebp + 0x1c]
mov dword [ecx], eax
mov eax, dword [edi + 0x3c]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
push 0x1100000
push dword [0x100800c0]
call dword [sym.imp.MSDART.DLL_MpHeapAlloc]
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
push ecx
push 0x1100000
push dword [0x100800c0]
call dword [sym.imp.MSDART.DLL_MpHeapAlloc]
add esp, 0x18
mov dword [edi + 0x64], eax
test eax, eax
je 0x10037b58
cmp dword [edi + 0x5c], 0
je 0x10037b58
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 - 0x18], ecx
mov dword [ebp - 0x20], edx
cmp dword [edi + 0x3c], ecx
jbe 0x1003785a
xor ebx, ebx
mov dword [ebp - 0x2c], edx
xor esi, esi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x10], esi
jmp 0x100376b0
mov eax, dword [edi + 0xa4]
cmp dword [eax + ecx*4], 0
je 0x1003783e
mov eax, dword [edi + 0x40]
mov esi, 0x1000e528
mov ecx, dword [edi + 0x64]
test byte [eax + ebx + 0x30], 0x80
jne 0x10037761
lea edi, [ecx + edx]
inc dword [ebp - 0x20]
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x10]
mov eax, dword [edi + 0x64]
mov dword [eax + edx + 0x1c], 6
mov eax, dword [edi + 0x40]
mov ecx, dword [edi + 0x64]
mov ax, word [eax + ebx + 0x20]
mov word [ecx + edx + 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 [eax + edx + 0xc], esi
mov eax, dword [edi + 0x64]
mov dword [eax + edx + 8], ecx
mov eax, dword [edi + 0x64]
mov dword [eax + edx + 0x28], 0
mov eax, dword [edi + 0x64]
mov dword [eax + edx + 0x20], 0
mov eax, dword [edi + 0x40]
mov ecx, dword [edi + 0x64]
movzx eax, byte [eax + ebx + 0x2c]
mov byte [ecx + edx + 0x32], al
mov eax, dword [edi + 0x40]
mov ecx, dword [edi + 0x64]
movzx eax, byte [eax + ebx + 0x2e]
mov byte [ecx + edx + 0x33], al
add edx, 0x34
mov dword [ebp - 0x2c], edx
jmp 0x1003783b
movzx eax, word [edi + 0x98]
dec eax
mov edx, dword [ebp - 0x1c]
imul ebx, eax, 0x34
push 0
lea edi, [ebx + ecx]
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x14]
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 - 0x10]
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 0x10037b61
mov edx, dword [ebp - 0x2c]
lea eax, [ecx + 1]
mov ebx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x10]
mov dword [edi + 0x60], eax
mov ecx, dword [ebp - 0x18]
inc ecx
add esi, 8
add ebx, 0x5c
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x1c], ebx
cmp ecx, dword [edi + 0x3c]
jb 0x100376b0
mov edx, dword [ebp - 0x20]
mov eax, dword [edi + 0x10]
add edi, 0x58
mov ebx, dword [ebp - 0x14]
push 0
push edi
mov esi, dword [eax]
push 8
push dword [ebx + 0x64]
mov esi, dword [esi + 0x10]
mov ecx, esi
push edx
push 2
push eax
call dword [0x1008147c]
call esi
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], eax
cmp dword [edi], 0
je 0x10037b64
mov edi, ebx
xor ecx, ecx
mov esi, 4
mov eax, dword [edi + 0x3c]
mul esi
seto cl
neg ecx
or ecx, eax
push ecx
push 0x1100000
push dword [0x100800c0]
call dword [sym.imp.MSDART.DLL_MpHeapAlloc]
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
push ecx
push 0x1100000
push dword [0x100800c0]
call dword [sym.imp.MSDART.DLL_MpHeapAlloc]
mov ecx, dword [edi + 0x68]
add esp, 0x18
mov dword [edi + 0x78], eax
test ecx, ecx
je 0x10037b58
test eax, eax
je 0x10037b58
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 - 0x1c], eax
cmp dword [edi + 0x3c], eax
jbe 0x10037af1
xor ebx, ebx
xor edx, edx
mov dword [ebp - 0x10], edx
lea ebx, [ebx]
lea ecx, [eax*4]
mov eax, dword [edi + 0xa4]
mov dword [ebp - 0x20], ecx
cmp dword [ecx + eax], 0
je 0x10037adb
mov ecx, dword [edi + 0x40]
test byte [ecx + edx + 0x30], 0x80
mov eax, dword [ecx + edx + 0x28]
mov dword [ebp - 0x2c], eax
jne 0x10037999
movsx esi, word [ecx + edx + 0x54]
cmp esi, 0xfffffff8
je 0x1003798f
xor ecx, ecx
cmp esi, 1
sete cl
jmp 0x10037994
mov ecx, 2
add eax, ecx
mov dword [ebp - 0x2c], eax
mov edi, dword [edi + 0x64]
mov ecx, 0xd
add edi, ebx
mov esi, 0x1000e528
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x2c]
mov eax, dword [edi + 0x64]
mov dword [ebx + eax + 0x1c], 1
mov eax, dword [edi + 0x40]
mov ecx, dword [edi + 0x64]
mov ax, word [edx + eax + 0x20]
mov word [ebx + ecx + 0x30], ax
mov eax, dword [edi + 0x40]
mov ecx, dword [edi + 0x64]
mov eax, dword [edx + eax + 0x1c]
mov dword [ebx + ecx], eax
mov eax, dword [edi + 0x64]
mov dword [ebx + eax + 4], 0
mov eax, dword [edi + 0x64]
mov dword [ebx + eax + 0x28], esi
mov eax, dword [edi + 0x64]
mov dword [ebx + eax + 0x20], 0
mov eax, dword [edi + 0x40]
mov ecx, dword [edi + 0x64]
movzx eax, byte [edx + eax + 0x2c]
mov byte [ebx + ecx + 0x32], al
mov eax, dword [edi + 0x40]
mov ecx, dword [edi + 0x64]
movzx eax, byte [edx + eax + 0x2e]
mov byte [ebx + ecx + 0x33], al
cmp esi, 0x2000
ja 0x10037a2e
lea edx, [esi + 3]
cmp edx, esi
jb 0x10037b7a
mov ecx, dword [ebp - 0x10]
and edx, 0xfffffffc
jmp 0x10037a43
mov eax, dword [edi + 0x40]
mov esi, 0x4000
mov ecx, dword [ebp - 0x10]
mov edx, 4
or word [ecx + eax + 0x20], si
mov eax, dword [edi + 0x40]
cmp dword [eax + ecx + 0x58], 4
jl 0x10037a57
mov eax, dword [edi + 0x64]
mov ecx, 0x81
jmp 0x10037a69
movzx ecx, word [eax + ecx + 0x20]
mov eax, dword [edi + 0x64]
cmp ecx, 6
jne 0x10037a69
mov ecx, 0x83
mov esi, dword [ebp - 0x24]
mov word [ebx + eax + 0x30], cx
mov eax, dword [edi + 0x78]
mov ecx, dword [ebp - 0x20]
mov dword [ecx + eax], esi
add esi, edx
mov eax, dword [edi + 0x90]
mov dword [ebp - 0x24], esi
cmp dword [ecx + eax], 0
jbe 0x10037a99
mov eax, dword [edi + 0x7c]
mov esi, dword [ebp - 0x28]
mov dword [ecx + eax], esi
add esi, edx
mov dword [ebp - 0x28], esi
mov eax, dword [edi + 0x68]
add eax, dword [ebp - 0x20]
mov ecx, dword [edi + 0x10]
push 0
push eax
mov eax, dword [edi + 0x64]
mov esi, dword [ecx]
add eax, ebx
push edx
push eax
push 1
mov esi, dword [esi + 0x10]
push 2
push ecx
mov ecx, esi
call dword [0x1008147c]
call esi
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], eax
mov eax, dword [edi + 0x68]
mov ecx, dword [ebp - 0x20]
cmp dword [ecx + eax], 0
je 0x10037b61
mov edx, dword [ebp - 0x10]
add ebx, 0x34
mov eax, dword [ebp - 0x1c]
add edx, 0x5c
inc eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x1c], eax
cmp eax, dword [edi + 0x3c]
jb 0x10037950
mov esi, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x24]
add esi, ebx
push esi
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov dword [edi + 0x74], eax
test eax, eax
je 0x10037b58
push esi
push 0
push eax
call sub.msvcrt.dll_memset
xor edx, edx
add esp, 0xc
cmp dword [edi + 0x3c], edx
jbe 0x10037b61
lea ebx, [ebx]
mov eax, dword [edi + 0xa4]
cmp dword [eax + edx*4], 0
je 0x10037b50
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 0x10037b50
mov eax, dword [edi + 0x7c]
lea ecx, [eax + edx*4]
mov eax, dword [edi + 0x74]
add eax, ebx
add dword [ecx], eax
inc edx
cmp edx, dword [edi + 0x3c]
jb 0x10037b20
jmp 0x10037b61
mov eax, dword [ebp + 0x1c]
mov dword [eax], 0x8007000e
mov ebx, dword [ebp - 0x14]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
call fcn.10039430
int3