Function at 0x1020a70
Capabilities:
Encrypt data using dpapi

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10488b0
push 0x10475bb
mov eax, dword fs:[0]
push eax
add esp, 0xfffff7b4
mov eax, dword [0x104c68c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov ecx, 6
mov esi, 0x100540c
lea edi, [ebp - 0x848]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov dword [ebp - 0x82c], 0
mov ax, word [0x10015d4]
mov word [ebp - 0x420], ax
push 0x3fe
push 0
lea ecx, [ebp - 0x41e]
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dword [ebp - 0x428], 0
xor edx, edx
cmp dword [0x104e7d0], 0
sete dl
mov dword [ebp - 0x424], edx
lea eax, [ebp - 0x848]
push eax
push 1
mov ecx, dword [ebp + 8]
push ecx
call fcn.0101a630
add esp, 0xc
test eax, eax
je 0x1020ca0
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x318]
push eax
push 0x1005608
push 0x200
lea ecx, [ebp - 0x420]
push ecx
call fcn.01011d00
add esp, 0x10
cmp dword [ebp - 0x424], 0
je 0x1020bb6
push 0x104c81c
call dword [0x104ef44]
test eax, eax
jne 0x1020b8f
cmp dword [0x104e7a8], 0
je 0x1020b84
cmp dword [0x104e0cc], 0
je 0x1020b84
lea edx, [ebp - 0x848]
push edx
push 0x1001c84
call dword [sym.imp.MSVCR80.dll_wprintf]
add esp, 8
push 0x104c81c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x104e7a8], 0
je 0x1020bb6
cmp dword [0x104e0cc], 0
je 0x1020bb6
lea eax, [ebp - 0x848]
push eax
push 0x1001c50
call dword [sym.imp.MSVCR80.dll_wprintf]
add esp, 8
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x420]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SQLSVC90.dll_QSQLExecDirect]
add esp, 8
cmp eax, 1
jne 0x1020c4b
lea eax, [ebp - 0x84c]
push eax
lea ecx, [ebp - 0x428]
push ecx
push 4
push 0xfffffffffffffff0
push 1
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SQLSVC90.dll_QSQLBind]
add esp, 0x18
lea eax, [ebp - 0x84c]
push eax
lea ecx, [ebp - 0x828]
push ecx
push 0x400
push 0xfffffffffffffffe
push 2
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SQLSVC90.dll_QSQLBind]
add esp, 0x18
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SQLSVC90.dll_QSQLNextRow]
add esp, 4
cmp eax, 0xffffffff
jne 0x1020c39
mov dword [ebp - 0x82c], 1
jmp 0x1020c1b
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SQLSVC90.dll_QSQLResults]
add esp, 4
cmp eax, 1
je 0x1020bd6
mov dword [ebp - 4], 0xfffffffe
call fcn.01020c59
jmp 0x1020ca0
cmp dword [ebp - 0x82c], 0
je 0x1020d82
mov eax, dword [ebp - 0x428]
mov dword [ebp - 0x85c], eax
lea ecx, [ebp - 0x828]
mov dword [ebp - 0x858], ecx
lea edx, [ebp - 0x854]
push edx
push 1
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x85c]
push eax
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
mov dword [ebp - 0x82c], eax
cmp dword [ebp - 0x82c], 0
je 0x1020d63
cmp dword [ebp - 0x854], 0x108
ja 0x1020d34
mov ecx, dword [ebp - 0x854]
push ecx
mov edx, dword [ebp - 0x850]
push edx
mov eax, dword [ebp + 0xc]
add eax, 0x210
push eax
call sub.MSVCR80.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 0x854]
shr ecx, 1
mov edx, dword [ebp + 0xc]
mov word [edx + ecx*2 + 0x20e], 0
jmp 0x1020d3e
mov dword [ebp - 0x82c], 0
mov eax, dword [ebp - 0x854]
push eax
mov ecx, dword [ebp - 0x850]
push ecx
call fcn.01020dc0
add esp, 8
mov edx, dword [ebp - 0x850]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1020d80
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10055e0
push 0x1ba
push 0
push 1
call fcn.01028fb0
add esp, 0x14
jmp 0x1020d98
mov eax, dword [ebp + 0xc]
mov word [eax + 0x210], 0
mov dword [ebp - 0x82c], 1
mov eax, dword [ebp - 0x82c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.010471ba
mov esp, ebp
pop ebp
ret