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

Disassembly:
sub esp, 0x70
mov eax, dword [0x1030fff4]
xor eax, esp
mov dword [esp + 0x6c], eax
push ebx
push ebp
push edi
mov edi, dword [esp + 0x80]
xor ebx, ebx
push 3
pop ecx
mov ebp, ebx
mov dword [esp + 0x24], ebx
movzx eax, byte [edi + 0x2d]
inc eax
mov dword [esp + 0x20], ebp
sub ecx, eax
mov dword [esp + 0x54], eax
push ecx
push eax
push edi
mov dword [esp + 0x5c], ecx
call fcn.1016e975
add esp, 0xc
test eax, eax
jne 0x1016e5af
push esi
push 0x30
lea eax, [edi + 0x34]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [edi + 8]
lea edx, [esp + 0x38]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x1016e59b
cmp dword [esp + 0x30], ebx
jl 0x1016e4fe
jg 0x1016e227
cmp dword [esp + 0x2c], 0x20
jbe 0x1016e4fe
mov eax, dword [edi + 8]
lea edx, [esp + 0x5c]
push ebx
push ebx
push 0x20
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 8]
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x1016e59b
lea eax, [esp + 0x5c]
push eax
call fcn.100d3840
mov dword [esp + 0x18], eax
lea eax, [esp + 0x68]
push eax
call fcn.100d3840
pop ecx
pop ecx
mov ebx, eax
mov eax, dword [esp + 0x14]
mov ecx, eax
and ecx, 0xfffffffe
cmp ecx, 0x377f0682
jne 0x1016e4fe
lea ecx, [ebx - 1]
test ebx, ecx
jne 0x1016e4fe
cmp ebx, 0x10000
jg 0x1016e4fe
cmp ebx, 0x200
jl 0x1016e4fe
and al, 1
mov dword [edi + 0x24], ebx
mov byte [edi + 0x41], al
lea eax, [esp + 0x68]
push eax
call fcn.100d3840
mov dword [edi + 0x70], eax
lea eax, [esp + 0x70]
push 8
push eax
lea eax, [edi + 0x54]
push eax
call sub.VCRUNTIME140.dll_memcpy
lea esi, [edi + 0x4c]
push esi
push 0
push 0x18
lea eax, [esp + 0x78]
push eax
xor eax, eax
cmp byte [edi + 0x41], al
sete al
push eax
call fcn.1016db60
lea eax, [esp + 0x98]
push eax
call fcn.100d3840
add esp, 0x28
cmp dword [esi], eax
jne 0x1016e4fe
lea eax, [esp + 0x78]
push eax
call fcn.100d3840
pop ecx
cmp dword [edi + 0x50], eax
jne 0x1016e4fe
lea eax, [esp + 0x60]
push eax
call fcn.100d3840
pop ecx
cmp eax, 0x2de218
je 0x1016e329
push 0xedb6
call fcn.1013f401
mov esi, eax
jmp 0x1016e4f5
lea eax, [ebx + 0x8018]
push 0
push eax
call fcn.101176d0
mov dword [esp + 0x24], eax
pop ecx
pop ecx
test eax, eax
jne 0x1016e349
push 7
pop esi
jmp 0x1016e59b
mov esi, dword [esp + 0x2c]
add eax, 0x18
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x3c], eax
add eax, ebx
mov dword [esp + 0x14], eax
sub esi, 0x20
lea eax, [ebx + 0x18]
cdq
sbb ecx, ebp
push edx
push eax
push ecx
push esi
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], edx
call fcn.10236230
mov ecx, eax
xor ebp, ebp
mov dword [esp + 0x50], ecx
mov dword [esp + 0x10], ebp
lfence
lea eax, [ecx + 0x21]
shr eax, 0xc
mov dword [esp + 0x4c], eax
mov eax, ebp
shl eax, 0xc
mov dword [esp + 0x20], eax
add eax, 0xfde
cmp ecx, eax
cmovb eax, ecx
mov dword [esp + 0x18], eax
lea eax, [esp + 0x48]
push eax
push ebp
push edi
call fcn.1016dee5
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1016e4e8
mov eax, dword [edi + 0x20]
mov ecx, dword [esp + 0x14]
push 1
mov dword [eax + ebp*4], ecx
mov ebp, dword [esp + 0x24]
add ebp, 0xffffffdf
cmp dword [esp + 0x14], esi
pop eax
cmove ebp, eax
cmp ebp, dword [esp + 0x18]
ja 0x1016e489
lfence
push dword [esp + 0x34]
lea eax, [ebp - 1]
push dword [esp + 0x3c]
push 0
push eax
call fcn.102363a0
add eax, 0x20
adc edx, 0
push edx
push eax
lea eax, [ebx + 0x18]
push eax
push dword [esp + 0x28]
push dword [edi + 8]
call fcn.100d3840
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x1016e489
push dword [esp + 0x1c]
lea eax, [esp + 0x48]
push dword [esp + 0x40]
push eax
lea eax, [esp + 0x4c]
push eax
push edi
call fcn.1016dc79
add esp, 0x14
test eax, eax
je 0x1016e489
push dword [esp + 0x40]
push ebp
push edi
call fcn.1016ddee
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1016e489
mov eax, dword [esp + 0x44]
test eax, eax
je 0x1016e47e
mov dword [edi + 0x48], eax
mov ecx, ebx
mov eax, ebx
sar ecx, 0x10
and eax, 0xff00
mov dword [edi + 0x44], ebp
or ecx, eax
mov word [edi + 0x42], cx
mov eax, dword [edi + 0x4c]
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0x50]
mov dword [esp + 0x28], eax
inc ebp
cmp ebp, dword [esp + 0x18]
jbe 0x1016e3e9
mov eax, dword [edi + 0x20]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x48]
mov dword [esp + 0x20], 0x7f78
mov dword [eax + ecx*4], edx
xor ecx, ecx
cmp dword [esp + 0x10], ecx
mov eax, 0x88
cmove ecx, eax
mov eax, 0x8000
cmove eax, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x18]
add eax, ecx
push eax
lea eax, [ecx + edx]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
cmp ebp, dword [esp + 0x18]
jbe 0x1016e4e8
mov ebp, dword [esp + 0x10]
mov ecx, dword [esp + 0x50]
inc ebp
mov dword [esp + 0x10], ebp
cmp ebp, dword [esp + 0x4c]
jbe 0x1016e391
push dword [esp + 0x1c]
call fcn.10117750
mov ebp, dword [esp + 0x28]
pop ecx
test esi, esi
jne 0x1016e59b
mov eax, dword [esp + 0x28]
push edi
mov dword [edi + 0x4c], ebp
mov dword [edi + 0x50], eax
call fcn.1016e6aa
mov eax, dword [edi + 0x20]
pop ecx
xor ecx, ecx
inc ecx
mov ebx, dword [eax]
mov ebp, ecx
mov dword [ebx + 0x60], 0
mov eax, dword [edi + 0x44]
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x64], 0
push ecx
lea eax, [ebp + 3]
push eax
push edi
call fcn.1016e975
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1016e56f
xor ecx, ecx
inc ecx
cmp ebp, ecx
jne 0x1016e557
mov eax, dword [edi + 0x44]
test eax, eax
je 0x1016e557
mov dword [ebx + 0x68], eax
jmp 0x1016e55f
mov dword [ebx + ebp*4 + 0x64], 0xffffffff
push ecx
lea eax, [ebp + 3]
push eax
push edi
call fcn.1016f004
add esp, 0xc
jmp 0x1016e574
cmp esi, 5
jne 0x1016e59b
inc ebp
push 1
pop ecx
cmp ebp, 5
jl 0x1016e530
cmp dword [edi + 0x48], 0
je 0x1016e59b
push dword [edi + 0x6c]
push dword [edi + 0x44]
push str.recovered__d_frames_from_WAL_file__s
push 0x11b
call fcn.1011e090
add esp, 0x10
push dword [esp + 0x54]
push dword [esp + 0x5c]
push edi
call fcn.1016f004
add esp, 0xc
mov eax, esi
pop esi
mov ecx, dword [esp + 0x78]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.10236000
add esp, 0x70
ret