Function at 0x1006b470
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x58
mov eax, dword [0x100ca170]
xor eax, esp
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x60]
push ebx
push ebp
push esi
push edi
xor edi, edi
mov esi, ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x10], edi
call fcn.1006a530
mov ebp, eax
cmp ebp, edi
jne 0x1006b8a5
mov eax, dword [esi + 0x44]
mov ebx, dword [esp + 0x6c]
mov dword [esp + 0x14], eax
cmp eax, edi
jne 0x1006b605
mov eax, ebx
shr eax, 8
mov ecx, ebx
shr ecx, 0x18
mov byte [esp + 0x48], cl
mov byte [esp + 0x4a], al
mov eax, dword [esi + 0x68]
mov edx, ebx
shr edx, 0x10
mov ecx, eax
shr ecx, 0x18
mov byte [esp + 0x49], dl
mov byte [esp + 0x4c], cl
mov edx, eax
mov ecx, eax
shr edx, 0x10
shr ecx, 8
mov byte [esp + 0x40], 0x37
mov byte [esp + 0x41], 0x7f
mov byte [esp + 0x42], 6
mov byte [esp + 0x43], 0x82
mov byte [esp + 0x44], 0
mov byte [esp + 0x45], 0x2d
mov byte [esp + 0x46], 0xe2
mov byte [esp + 0x47], 0x18
mov byte [esp + 0x4b], bl
mov byte [esp + 0x4d], dl
mov byte [esp + 0x4e], cl
mov byte [esp + 0x4f], al
cmp eax, edi
jne 0x1006b533
lea edx, [esi + 0x54]
push edx
push 8
call sym.SQLite.Interop.dll_sqlite3_randomness
add esp, 8
mov ecx, dword [esi + 0x58]
mov eax, dword [esi + 0x54]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x50], eax
xor ecx, ecx
lea edx, [esp + 0x40]
xor eax, eax
lea esp, [esp]
mov ebp, dword [edx]
add ebp, ecx
add eax, ebp
mov ebp, dword [edx + 4]
add edx, 4
add ebp, eax
add ecx, ebp
add edx, 4
lea ebp, [esp + 0x58]
cmp edx, ebp
jb 0x1006b550
mov edx, eax
shr edx, 0x18
mov byte [esp + 0x58], dl
mov edx, eax
shr edx, 0x10
mov byte [esp + 0x59], dl
mov edx, eax
shr edx, 8
mov byte [esp + 0x5a], dl
mov edx, ecx
shr edx, 0x18
mov byte [esp + 0x5c], dl
mov edx, ecx
shr edx, 0x10
mov byte [esp + 0x5d], dl
mov edx, ecx
push edi
shr edx, 8
mov byte [esp + 0x62], dl
push edi
mov byte [esp + 0x63], al
mov dword [esi + 0x4c], eax
mov eax, dword [esi + 8]
push 0x20
lea edx, [esp + 0x4c]
mov byte [esp + 0x6b], cl
mov dword [esi + 0x24], ebx
mov byte [esi + 0x41], 0
mov dword [esi + 0x50], ecx
mov byte [esi + 0x2f], 1
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov ebp, eax
add esp, 0x14
cmp ebp, edi
jne 0x1006b8a3
cmp byte [esi + 0x30], 0
je 0x1006b605
mov ecx, dword [esp + 0x7c]
cmp ecx, edi
je 0x1006b605
mov eax, dword [esi + 8]
mov edx, dword [eax]
and ecx, 0x13
push ecx
push eax
mov eax, dword [edx + 0x14]
call eax
mov ebp, eax
add esp, 8
cmp ebp, edi
jne 0x1006b8a3
mov edx, dword [esp + 0x7c]
mov ecx, dword [esi + 8]
lea eax, [ebx + 0x18]
mov dword [esp + 0x28], eax
mov dword [esp + 0x50], edx
cdq
push edx
push eax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x1c]
push edi
push eax
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x64], ebx
mov dword [esp + 0x4c], edx
call fcn.100083f0
mov ecx, dword [esp + 0x34]
mov ebx, eax
add ebx, 0x20
mov edi, edx
adc edi, 0
mov dword [esp + 0x18], ecx
test ecx, ecx
je 0x1006b6b3
jmp 0x1006b664
mov ecx, dword [esp + 0x18]
inc dword [esp + 0x14]
cmp dword [esp + 0x78], 0
je 0x1006b67b
cmp dword [ecx + 0xc], 0
jne 0x1006b67b
mov eax, dword [esp + 0x74]
jmp 0x1006b67d
xor eax, eax
push edi
push ebx
push eax
lea edx, [esp + 0x4c]
push edx
call fcn.10021760
mov ebp, eax
add esp, 0x10
test ebp, ebp
jne 0x1006b8a3
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
cdq
add ebx, eax
mov eax, dword [ecx + 0xc]
adc edi, edx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x18], eax
test eax, eax
jne 0x1006b660
cmp dword [esp + 0x78], 0
je 0x1006b806
mov eax, dword [esp + 0x7c]
test al, 0x20
je 0x1006b7a4
cmp byte [esi + 0x31], 0
je 0x1006b78f
mov eax, dword [esi + 8]
mov ecx, dword [eax]
mov ecx, dword [ecx + 0x2c]
test ecx, ecx
je 0x1006b6f2
push eax
call ecx
add esp, 4
cmp eax, 0x20
jge 0x1006b6f9
mov eax, 0x200
jmp 0x1006b705
mov eax, 0x1000
jmp 0x1006b705
cmp eax, 0x10000
jle 0x1006b705
mov eax, 0x10000
cdq
mov dword [esp + 0x18], eax
add eax, ebx
mov ecx, edx
push edx
adc ecx, edi
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x1c]
sub eax, 1
push edx
sbb ecx, 0
push ecx
push eax
call fcn.10004b80
mov ecx, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x1c]
push ecx
push edx
push eax
call fcn.100083f0
cmp edi, edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], edx
jg 0x1006b7a4
jl 0x1006b750
cmp ebx, eax
jae 0x1006b7a4
lea ebx, [ebx]
mov edx, dword [esp + 0x74]
mov ecx, dword [esp + 0x24]
push edi
push ebx
push edx
lea eax, [esp + 0x4c]
push eax
call fcn.10021760
mov ebp, eax
add esp, 0x10
test ebp, ebp
jne 0x1006b8a3
mov eax, dword [esp + 0x28]
cdq
add ebx, eax
adc edi, edx
inc dword [esp + 0x10]
cmp edi, dword [esp + 0x4c]
jl 0x1006b750
jg 0x1006b7a4
cmp ebx, dword [esp + 0x48]
jb 0x1006b750
jmp 0x1006b7a4
mov ecx, dword [esp + 0x44]
mov edx, dword [ecx]
and eax, 0x13
push eax
mov eax, dword [edx + 0x14]
push ecx
call eax
add esp, 8
mov ebp, eax
cmp byte [esi + 0x2f], 0
je 0x1006b806
mov edi, dword [esi + 0x14]
mov ebx, dword [esi + 0x10]
test edi, edi
jl 0x1006b806
jg 0x1006b7ba
test ebx, ebx
jb 0x1006b806
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x3c]
add ecx, edx
mov edx, dword [esp + 0x38]
push eax
push edx
push 0
push ecx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], edi
call fcn.100083f0
add eax, 0x20
adc edx, 0
cmp edx, edi
jl 0x1006b7ee
jg 0x1006b7f6
cmp eax, ebx
ja 0x1006b7f6
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push edx
push eax
mov edi, esi
call fcn.10064c00
add esp, 8
mov byte [esi + 0x2f], 0
mov ebx, dword [esp + 0x34]
mov edi, dword [esi + 0x44]
test ebx, ebx
je 0x1006b832
test ebp, ebp
jne 0x1006b8a3
mov eax, dword [ebx + 0x14]
push eax
inc edi
push esi
mov eax, edi
call fcn.10064c80
mov ebx, dword [ebx + 0xc]
add esp, 8
mov ebp, eax
test ebx, ebx
jne 0x1006b811
test ebp, ebp
jne 0x1006b8a3
cmp dword [esp + 0x10], 0
jle 0x1006b86e
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + 0x14]
dec dword [esp + 0x10]
push edx
inc edi
push esi
mov eax, edi
call fcn.10064c80
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x1006b836
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.10001180
add esp, 0x58
ret
test ebp, ebp
jne 0x1006b8a3
mov eax, dword [esp + 0x6c]
mov ecx, eax
sar ecx, 0x10
and eax, 0xff00
or ecx, eax
mov word [esi + 0x42], cx
mov dword [esi + 0x44], edi
cmp dword [esp + 0x78], ebp
je 0x1006b8a3
mov edx, dword [esp + 0x74]
inc dword [esi + 0x3c]
mov dword [esi + 0x48], edx
mov edx, esi
call fcn.10021b10
mov dword [esi + 0xc], edi
mov eax, ebp
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10001180
add esp, 0x58
ret