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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100730ae
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x10079914]
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 - 0x20], 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 0x1003711e
mov dword [eax], 0
mov eax, dword [ebp + 8]
mov ecx, 7
mov ebx, dword [ebp + 0x10]
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x1c], eax
mov eax, dword [ebp + 0x14]
mov dword [edi + 0x24], eax
mov eax, dword [ebp + 0x20]
mov dword [edi + 8], ebx
mov dword [edi + 0x18], eax
mov dword [edi + 0x28], 0xffffffff
mov word [edi + 0x34], cx
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
test eax, eax
je 0x10037173
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 dword [edi + 0xc0], eax
mov eax, dword [edi + 0x1c]
lea ecx, [edi + 0x20]
push ebx
push ecx
push eax
mov ecx, dword [eax + 0x23c]
call fcn.10031ee0
mov ebx, dword [ebp + 0x1c]
mov dword [ebx], eax
test eax, eax
js 0x100378fe
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], 0x1e
push eax
push 0x1000d514
push SQLBindCol
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x100371fb
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 4
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
push 0x1000e27c
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100371ed
cmp dword [ebp - 0x1c], 4
jne 0x100371ed
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x100371fb
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
je 0x10037232
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 0x10037277
mov dword [ebx], 0x80004005
jmp 0x100378fe
mov ecx, dword [esi]
lea eax, [edi + 0xc]
push eax
push 0x10015f40
push ecx
mov esi, dword [ecx]
mov esi, dword [esi]
mov ecx, esi
call dword [0x1007f468]
call esi
mov dword [ebx], eax
mov ecx, dword [edi + 4]
add edi, 0x14
push edi
push 0x10002e80
push ecx
mov eax, dword [ecx]
mov esi, dword [eax]
mov ecx, esi
call dword [0x1007f468]
call esi
mov dword [ebx], eax
cmp dword [edi], 0
mov edi, dword [ebp - 0x20]
je 0x100378fe
mov ecx, edi
call fcn.10036240
mov dword [ebx], eax
test eax, eax
js 0x100378fe
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x100372a3
mov edx, edi
call fcn.10035d20
xor ecx, ecx
mov dword [edi + 0x50], eax
test eax, eax
setne cl
mov dword [edi + 0x54], ecx
mov ecx, edi
call fcn.100369a0
mov dword [ebx], eax
test eax, eax
js 0x100378fe
mov ecx, edi
call fcn.10036560
mov dword [ebx], eax
test eax, eax
js 0x100378fe
cmp dword [edi + 0x50], 0
jne 0x10037392
xor ebx, ebx
cmp ebx, dword [edi + 0x3c]
jae 0x10037360
xor esi, esi
lea esp, [esp]
mov eax, dword [edi + 0xa4]
cmp dword [eax + ebx*4], 0
je 0x10037352
mov edx, dword [edi + 0x40]
mov eax, dword [edx + esi + 0x3c]
test eax, eax
je 0x10037352
cmp word [eax], 0
je 0x10037352
mov ecx, dword [edi + 0x50]
test ecx, ecx
je 0x10037341
cmp word [ecx], 0
je 0x10037341
push eax
push ecx
call dword [sym.imp.msvcrt.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x1003735b
mov edx, dword [edi + 0x40]
mov ecx, dword [edi + 0x4c]
mov edx, dword [esi + edx + 0x38]
call fcn.10037050
test eax, eax
jne 0x1003735b
mov edx, dword [edi + 0x40]
mov ecx, dword [edi + 0x48]
mov edx, dword [esi + edx + 0x34]
call fcn.10037050
test eax, eax
jne 0x1003735b
jmp 0x10037352
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 0x100372e0
cmp ebx, dword [edi + 0x3c]
jb 0x1003736d
mov eax, dword [edi + 0x50]
test eax, eax
je 0x1003736d
cmp word [eax], 0
jne 0x1003738f
mov eax, dword [ebp + 0x24]
mov dword [edi + 0x50], 0
test eax, eax
je 0x10037381
mov dword [eax], 0x8ff
mov eax, dword [ebp + 0x1c]
mov dword [eax], 0x8000ffff
jmp 0x100378fe
mov ebx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x24]
mov ecx, edi
call fcn.100367f0
mov dword [ebx], eax
test eax, eax
js 0x100378fe
cmp dword [edi + 0x18], 0
je 0x100373b7
mov eax, dword [ebp + 0x20]
mov eax, dword [eax + 0x2c]
mov dword [edi + 0x10], eax
jmp 0x100373d4
mov ecx, dword [ebp + 8]
lea edx, [edi + 0x10]
push edx
push 0x10015e50
push ecx
mov eax, dword [ecx]
mov esi, dword [eax]
mov ecx, esi
call dword [0x1007f468]
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.10016b20
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.10016b20
mov dword [edi + 0x64], eax
test eax, eax
je 0x100378f8
cmp dword [edi + 0x5c], 0
je 0x100378f8
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 0x10037609
xor ebx, ebx
mov dword [ebp - 0x24], edx
xor esi, esi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], esi
jmp 0x10037460
mov eax, dword [edi + 0xa4]
cmp dword [eax + ecx*4], 0
je 0x100375ea
mov eax, dword [edi + 0x40]
mov ecx, 0xd
mov esi, 0x1000e448
test byte [ebx + eax + 0x30], 0x80
jne 0x10037510
mov edi, dword [edi + 0x64]
add edi, edx
inc dword [ebp - 0x18]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x20]
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 [ebx + eax + 0x20]
mov word [edx + ecx + 0x30], ax
mov eax, dword [edi + 0x40]
mov ecx, dword [edi + 0x64]
mov eax, dword [ebx + eax + 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 [ebx + eax + 0x2c]
mov byte [edx + ecx + 0x32], al
mov eax, dword [edi + 0x40]
mov ecx, dword [edi + 0x64]
movzx eax, byte [ebx + eax + 0x2e]
mov byte [edx + ecx + 0x33], al
add edx, 0x34
mov dword [ebp - 0x24], edx
jmp 0x100375e7
movzx eax, word [edi + 0x98]
mov edi, dword [edi + 0x64]
dec eax
imul ebx, eax, 0x34
mov edx, dword [ebp - 0x1c]
push 0
add edi, ebx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x20]
mov eax, dword [edi + 0x64]
mov dword [ebx + eax + 0x1c], 6
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 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 [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
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 [0x1007f468]
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 0x100378fe
mov edx, dword [ebp - 0x24]
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 0x10037460
mov ebx, dword [ebp + 0x1c]
mov edx, dword [ebp - 0x18]
mov eax, dword [edi + 0x10]
add edi, 0x58
mov ecx, dword [ebp - 0x20]
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 [0x1007f468]
call esi
mov dword [ebx], eax
cmp dword [edi], 0
mov edi, dword [ebp - 0x20]
je 0x100378fe
mov eax, dword [edi + 0x3c]
xor ecx, ecx
mov esi, 4
mul esi
seto cl
neg ecx
or ecx, eax
call fcn.10016b20
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.10016b20
mov ecx, dword [edi + 0x68]
mov dword [edi + 0x78], eax
test ecx, ecx
je 0x100378f8
test eax, eax
je 0x100378f8
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 0x1003788c
xor ebx, ebx
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
lea ebx, [ebx]
lea edx, [eax*4]
mov eax, dword [edi + 0xa4]
cmp dword [edx + eax], 0
je 0x10037873
mov eax, dword [edi + 0x40]
test byte [ecx + eax + 0x30], 0x80
mov edx, dword [ecx + eax + 0x28]
mov dword [ebp - 0x24], edx
jne 0x10037717
mov cx, word [ecx + eax + 0x54]
call fcn.10038f50
add edx, eax
mov dword [ebp - 0x24], edx
mov edi, dword [edi + 0x64]
mov ecx, 0xd
add edi, ebx
mov esi, 0x1000e448
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x20]
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 [esi + eax + 0x20]
mov word [ebx + ecx + 0x30], ax
mov eax, dword [edi + 0x40]
mov ecx, dword [edi + 0x64]
mov eax, dword [esi + eax + 0x1c]
mov dword [ebx + ecx], eax
mov eax, dword [edi + 0x64]
mov ecx, dword [ebp - 0x24]
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 [esi + eax + 0x2c]
mov byte [ebx + edx + 0x32], al
mov eax, dword [edi + 0x40]
mov edx, dword [edi + 0x64]
movzx eax, byte [esi + eax + 0x2e]
mov byte [ebx + edx + 0x33], al
cmp ecx, 0x2000
ja 0x100377ab
mov edx, 4
call fcn.10038f10
mov dword [ebp - 0x18], eax
jmp 0x100377bf
mov eax, dword [edi + 0x40]
mov edx, 0x4000
mov dword [ebp - 0x18], 4
or word [esi + eax + 0x20], dx
mov eax, dword [edi + 0x40]
cmp dword [eax + esi + 0x58], 4
jl 0x100377d8
mov eax, dword [edi + 0x64]
mov ecx, 0x81
mov word [ebx + eax + 0x30], cx
jmp 0x100377f6
movzx edx, word [eax + esi + 0x20]
mov eax, dword [edi + 0x64]
cmp edx, 6
jne 0x100377f1
mov ecx, 0x83
mov word [ebx + eax + 0x30], cx
jmp 0x100377f6
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 0x10037829
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 [0x1007f468]
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 0x100378fe
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 0x100376e0
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 0x100378f8
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 0x100378fe
lea ebx, [ebx]
mov eax, dword [edi + 0xa4]
cmp dword [eax + edx*4], 0
je 0x100378f0
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 0x100378f0
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 0x100378c0
jmp 0x100378fe
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.10071a90
mov esp, ebp
pop ebp
ret 0x20