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

Disassembly:
sub esp, 0x9c
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x28], 0
mov ebp, edx
mov dword [esp + 0x20], 0
mov dword [esp + 0x34], ebp
mov esi, 0x2c
mov dword [esp + 0x1c], 0
mov eax, dword [edi + 0x20]
lea ecx, [edi + 0x34]
mov ebx, dword [eax]
mov edx, ebx
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x10220ce3
add ecx, 4
add edx, 4
sub esi, 4
jae 0x10220cd0
jmp 0x10220cef
mov ebp, dword [ebx + 0x10]
inc ebp
mov dword [esp + 0x1c], ebp
mov ebp, dword [esp + 0x34]
xor eax, eax
cmp word [edi + 0x28], ax
jne 0x10220d97
cmp dword [ebx + 0x60], eax
jbe 0x10220d59
lea eax, [esp + 0x24]
push eax
push 4
call sym.WMCommon.dll_sqlite3_randomness
add esp, 8
cmp byte [edi + 0x2b], 0
jne 0x10220d34
mov eax, dword [edi + 4]
push 0xa
push 4
push 4
mov ecx, dword [eax]
push eax
mov eax, dword [ecx + 0x38]
call eax
add esp, 0x10
test eax, eax
je 0x10220d34
cmp eax, 5
je 0x10220d59
jmp 0x10220d97
mov edx, dword [esp + 0x24]
mov ecx, edi
call fcn.10222eb0
cmp byte [edi + 0x2b], 0
jne 0x10220d73
mov eax, dword [edi + 4]
push 9
push 4
push 4
mov ecx, dword [eax]
push eax
mov eax, dword [ecx + 0x38]
call eax
add esp, 0x10
cmp byte [edi + 0x2b], 0
jne 0x10220d73
mov eax, dword [edi + 4]
push 5
push 1
push 3
mov ecx, dword [eax]
push eax
mov eax, dword [ecx + 0x38]
call eax
add esp, 0x10
or eax, 0xffffffff
xor esi, esi
mov word [edi + 0x28], ax
nop dword [eax]
inc esi
lea edx, [esp + 0x54]
push esi
push 1
mov ecx, edi
call fcn.10221e20
add esp, 8
cmp eax, 0xffffffff
je 0x10220d80
mov esi, eax
test eax, eax
jne 0x102212ec
mov ebx, dword [edi + 0x44]
mov dword [esp + 0x2c], ebx
test ebx, ebx
jne 0x10220e92
mov ecx, dword [edi + 0x70]
mov eax, ebp
mov dword [esp + 0x58], 0x82067f37
mov dword [esp + 0x5c], 0x18e22d00
bswap eax
mov dword [esp + 0x60], eax
mov eax, ecx
bswap eax
mov dword [esp + 0x64], eax
test ecx, ecx
jne 0x10220de5
lea eax, [edi + 0x54]
push eax
push 8
call sym.WMCommon.dll_sqlite3_randomness
add esp, 8
mov eax, dword [edi + 0x54]
lea ecx, [esp + 0x58]
mov dword [esp + 0x68], eax
xor edx, edx
mov eax, dword [edi + 0x58]
xor esi, esi
mov dword [esp + 0x6c], eax
nop dword [eax + eax]
mov eax, dword [ecx]
add eax, edx
add esi, eax
mov eax, dword [ecx + 4]
add eax, esi
add ecx, 8
add edx, eax
lea eax, [esp + 0x70]
cmp ecx, eax
jb 0x10220e00
mov eax, esi
mov dword [edi + 0x24], ebp
bswap eax
mov dword [esp + 0x70], eax
mov eax, edx
bswap eax
mov byte [edi + 0x41], 0
mov dword [edi + 0x50], edx
lea edx, [esp + 0x58]
mov dword [edi + 0x4c], esi
mov dword [esp + 0x74], eax
mov eax, dword [edi + 8]
push 0
push 0
mov byte [edi + 0x2f], 1
mov ecx, dword [eax]
push 0x20
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x102212ea
cmp byte [edi + 0x30], al
je 0x10220e92
mov ecx, dword [esp + 0xbc]
mov edx, dword [edi + 8]
sar ecx, 2
and ecx, 3
je 0x10220e90
mov eax, dword [edx]
push ecx
push edx
mov eax, dword [eax + 0x14]
call eax
mov esi, eax
add esp, 8
test esi, esi
je 0x10220e92
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9c
ret
xor esi, esi
mov eax, dword [edi + 8]
xorps xmm0, xmm0
mov dword [esp + 0x18], eax
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0xbc]
mov dword [esp + 0x48], eax
lea eax, [ebp + 0x18]
mov dword [esp + 0x54], eax
cdq
mov ecx, eax
mov dword [esp + 0x38], edi
mov eax, edx
movlpd qword [esp + 0x40], xmm0
push eax
push ecx
push 0
push ebx
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x34], ecx
mov dword [esp + 0x40], eax
call fcn.10247080
add eax, 0x20
mov ebp, edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xb0]
adc ebp, 0
mov ebx, eax
test eax, eax
mov eax, dword [esp + 0xb8]
je 0x1022105a
nop dword [eax + eax]
cmp dword [esp + 0x1c], 0
je 0x10220fa1
cmp dword [ebx + 0x10], 0
jne 0x10220f19
test eax, eax
jne 0x10220fa1
mov edx, dword [ebx + 0x18]
lea eax, [esp + 0x18]
push eax
mov ecx, edi
mov dword [esp + 0x1c], 0
call fcn.10221900
mov esi, dword [esp + 0x1c]
add esp, 4
cmp esi, dword [esp + 0x1c]
jb 0x10220f9a
push dword [esp + 0x30]
lea eax, [esi - 1]
push dword [esp + 0x28]
push 0
push eax
call fcn.10247080
add eax, 0x38
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x68]
adc edx, 0
test eax, eax
je 0x10220f65
cmp esi, eax
jae 0x10220f68
mov dword [edi + 0x68], esi
mov eax, dword [edi + 8]
push edx
push dword [esp + 0x1c]
push dword [esp + 0x3c]
mov ecx, dword [eax]
push dword [ebx + 4]
push eax
mov eax, dword [ecx + 0xc]
call eax
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x102212ea
mov ecx, 0xffbf
and word [ebx + 0x1c], cx
jmp 0x10221038
mov eax, dword [esp + 0xb8]
inc dword [esp + 0x2c]
test eax, eax
je 0x10220fb8
cmp dword [ebx + 0x10], 0
jne 0x10220fb8
mov eax, dword [esp + 0xb4]
jmp 0x10220fba
xor eax, eax
mov ecx, dword [ebx + 4]
lea edx, [esp + 0x78]
push edx
mov edx, dword [ebx + 0x18]
push ecx
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x40]
push eax
call fcn.10223ef0
add esp, 0xc
lea edx, [esp + 0x78]
lea ecx, [esp + 0x38]
push ebp
push dword [esp + 0x18]
push 0x18
call fcn.10221520
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x102212ea
mov ecx, dword [esp + 0x14]
mov eax, ebp
mov edx, dword [esp + 0x28]
add ecx, 0x18
adc eax, esi
push eax
push ecx
push dword [esp + 0x54]
lea ecx, [esp + 0x44]
call fcn.10221520
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x102212ea
mov eax, dword [esp + 0x24]
add dword [esp + 0x14], eax
mov dword [esp + 0x28], ebx
adc ebp, dword [esp + 0x30]
or word [ebx + 0x1c], 0x40
mov ebx, dword [ebx + 0x10]
test ebx, ebx
je 0x1022104b
mov eax, dword [esp + 0xb8]
jmp 0x10220f00
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xb8]
test eax, eax
je 0x10221240
cmp dword [edi + 0x68], 0
je 0x1022107d
mov edx, dword [esp + 0x2c]
mov ecx, edi
call fcn.10221300
mov esi, eax
test esi, esi
jne 0x102212ea
and dword [esp + 0xbc], 3
je 0x102211ee
cmp byte [edi + 0x31], 0
je 0x102211d6
mov ecx, dword [edi + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 0x2c]
test eax, eax
je 0x102210bf
push ecx
call eax
add esp, 4
cmp eax, 0x20
jge 0x102210b3
mov eax, 0x200
jmp 0x102210c4
mov ecx, 0x10000
cmp eax, ecx
cmovg eax, ecx
jmp 0x102210c4
mov eax, 0x1000
mov ebx, dword [esp + 0x14]
cdq
mov ecx, eax
add ecx, ebx
mov dword [esp + 0x14], ecx
mov ecx, edx
adc ecx, ebp
sub dword [esp + 0x14], 1
push edx
sbb ecx, 0
push eax
push ecx
push dword [esp + 0x20]
mov dword [esp + 0x2c], ecx
call fcn.102470c0
mov ecx, dword [esp + 0x14]
sub ecx, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x40], ecx
sbb eax, edx
mov dword [esp + 0x44], eax
cmp ecx, ebx
jne 0x10221111
mov dword [esp + 0x1c], 1
cmp eax, ebp
je 0x10221119
mov dword [esp + 0x1c], 0
cmp ebp, eax
jg 0x102211cf
jl 0x10221130
cmp ebx, ecx
jae 0x102211cf
nop dword [eax + eax]
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x90]
push edx
mov eax, dword [ecx + 4]
mov edx, dword [ecx + 0x18]
mov ecx, dword [esp + 0x3c]
push eax
push dword [esp + 0xbc]
mov dword [esp + 0x24], eax
call fcn.10223ef0
add esp, 0xc
lea edx, [esp + 0x90]
lea ecx, [esp + 0x38]
push ebp
push ebx
push 0x18
call fcn.10221520
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x102212ea
mov edx, dword [esp + 0x18]
mov ecx, ebx
add ecx, 0x18
mov eax, ebp
adc eax, esi
push eax
push ecx
push dword [esp + 0x54]
lea ecx, [esp + 0x44]
call fcn.10221520
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x102212ea
mov eax, dword [esp + 0x54]
cdq
add ebx, eax
adc ebp, edx
inc dword [esp + 0x20]
cmp ebp, dword [esp + 0x44]
jl 0x10221130
jg 0x102211c7
cmp ebx, dword [esp + 0x40]
jb 0x10221130
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x18], eax
cmp dword [esp + 0x1c], 0
je 0x102211ee
mov ecx, dword [esp + 0x18]
push dword [esp + 0xbc]
push ecx
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
call eax
add esp, 8
mov esi, eax
cmp byte [edi + 0x2f], 0
je 0x10221240
mov ebp, dword [edi + 0x14]
mov ebx, dword [edi + 0x10]
test ebp, ebp
jl 0x10221240
jg 0x10221204
test ebx, ebx
jb 0x10221240
push dword [esp + 0x30]
mov eax, dword [esp + 0x24]
push dword [esp + 0x28]
add eax, dword [esp + 0x34]
push 0
push eax
call fcn.10247080
add eax, 0x20
adc edx, 0
cmp edx, ebp
jl 0x10221230
jg 0x1022122c
cmp eax, ebx
jbe 0x10221230
mov ebx, eax
mov ebp, edx
push ebp
push ebx
mov ecx, edi
call fcn.10222890
add esp, 8
mov byte [edi + 0x2f], 0
mov ebp, dword [esp + 0xb0]
mov ebx, dword [edi + 0x44]
test ebp, ebp
je 0x10221277
nop
test esi, esi
jne 0x102212ea
test byte [ebp + 0x1c], 0x40
je 0x10221270
push dword [ebp + 0x18]
inc ebx
mov ecx, edi
mov edx, ebx
call fcn.10223ba0
add esp, 4
mov esi, eax
mov ebp, dword [ebp + 0x10]
test ebp, ebp
jne 0x10221250
test esi, esi
jne 0x102212ea
mov ebp, dword [esp + 0x28]
nop
mov eax, dword [esp + 0x20]
test eax, eax
jle 0x102212ae
push dword [ebp + 0x18]
inc ebx
dec eax
mov edx, ebx
mov dword [esp + 0x24], eax
mov ecx, edi
call fcn.10223ba0
mov esi, eax
add esp, 4
test esi, esi
je 0x10221280
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9c
ret
test esi, esi
jne 0x102212ea
mov ecx, dword [esp + 0x34]
mov eax, ecx
sar eax, 0x10
and ecx, 0xff00
or eax, ecx
mov dword [edi + 0x44], ebx
mov word [edi + 0x42], ax
cmp dword [esp + 0xb8], esi
je 0x102212ea
mov eax, dword [esp + 0xb4]
mov ecx, edi
inc dword [edi + 0x3c]
mov dword [edi + 0x48], eax
call fcn.10223f70
mov dword [edi + 0xc], ebx
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9c
ret