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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
mov eax, dword [0x609e44]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x34], 0
push edi
mov dword [esp + 0x3c], 0
movzx edi, byte [esi + 0x2d]
inc edi
cmp byte [esi + 0x2b], 0
mov dword [esp + 0x18], edi
jne 0x46862f
mov ecx, dword [esi + 4]
mov eax, 3
push 0xa
sub eax, edi
push eax
mov edx, dword [ecx]
push edi
push ecx
mov eax, dword [edx + 0x38]
call eax
add esp, 0x10
test eax, eax
jne 0x468af6
push 0x30
lea eax, [esi + 0x34]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [esi + 8]
lea edx, [esp + 0x6c]
add esp, 0xc
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x468ad5
cmp dword [esp + 0x64], eax
jl 0x4689fe
jg 0x468673
cmp dword [esp + 0x60], 0x20
jbe 0x4689fe
mov eax, dword [esi + 8]
lea edx, [esp + 0x6c]
push 0
push 0
push 0x20
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 8]
call eax
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x468ad5
mov edx, dword [esp + 0x6c]
mov ebx, dword [esp + 0x74]
bswap edx
mov eax, edx
and eax, 0xfffffffe
bswap ebx
mov dword [esp + 0x50], ebx
cmp eax, 0x377f0682
jne 0x4689fe
lea eax, [ebx - 1]
test ebx, eax
jne 0x4689fe
cmp ebx, 0x10000
jg 0x4689fe
cmp ebx, 0x200
jl 0x4689fe
mov eax, dword [esp + 0x78]
lea edi, [esi + 0x4c]
mov ecx, dword [esp + 0x80]
and dl, 1
bswap eax
mov dword [esi + 0x58], ecx
push edi
movzx ecx, dl
mov byte [esi + 0x41], dl
xor ecx, 1
mov dword [esi + 0x70], eax
lea edx, [esp + 0x70]
mov eax, dword [esp + 0x80]
push 0
push 0x18
mov dword [esi + 0x24], ebx
mov dword [esi + 0x54], eax
call fcn.004682a0
mov eax, dword [esp + 0x90]
add esp, 0xc
bswap eax
cmp dword [edi], eax
jne 0x4689fe
mov eax, dword [esp + 0x88]
bswap eax
cmp dword [esi + 0x50], eax
jne 0x4689fe
mov eax, dword [esp + 0x70]
bswap eax
cmp eax, 0x2de218
je 0x468771
push 0x604454
push 0xecdb
push str.cannot_open_file
push str._s_at_line__d_of___.10s_
push 0xe
call fcn.0045ade0
add esp, 0x14
mov ebx, 0xe
jmp 0x468ad1
lea edi, [ebx + 0x18]
mov dword [esp + 0x48], edi
call fcn.004f4b20
test eax, eax
jne 0x468a41
lea eax, [ebx + 0x8018]
push 0
push eax
call fcn.00457ba0
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
je 0x468a41
mov ecx, dword [esp + 0x64]
add ebx, 0x18
add eax, ebx
mov dword [esp + 0x30], eax
mov eax, edi
mov edi, dword [esp + 0x60]
cdq
sub edi, 0x20
mov ebx, eax
mov eax, edx
push eax
push ebx
sbb ecx, 0
mov dword [esp + 0x4c], ebx
push ecx
push edi
mov dword [esp + 0x50], eax
call fcn.005a8320
mov ecx, eax
mov dword [esp + 0x54], 0x7f78
xor edi, edi
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x34], edi
lea eax, [ecx + 0x21]
shr eax, 0xc
mov dword [esp + 0x58], eax
nop
mov ebx, edi
shl ebx, 0xc
lea eax, [ebx + 0xfde]
cmp ecx, eax
cmovb eax, ecx
mov dword [esp + 0x24], eax
test edi, edi
jne 0x46880d
lea ebx, [edi + 1]
jmp 0x468810
add ebx, 0xffffffdf
mov dword [esp + 0x10], ebx
cmp dword [esi + 0x18], edi
jle 0x46883a
mov eax, dword [esi + 0x20]
lea ecx, [esi + 0x20]
mov dword [esp + 0x1c], ecx
mov edx, dword [eax + edi*4]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], edx
test edx, edx
je 0x468841
xor eax, eax
mov dword [esp + 0x20], eax
jmp 0x46886e
lea eax, [esi + 0x20]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x28]
mov edx, edi
push eax
mov ecx, esi
call fcn.00468130
mov ecx, dword [esp + 0x20]
add esp, 4
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
test eax, eax
jne 0x4689e6
mov eax, dword [esp + 0x28]
mov dword [esp + 0x2c], eax
mov eax, dword [ecx]
mov edx, dword [esp + 0x30]
mov dword [eax + edi*4], edx
cmp ebx, dword [esp + 0x24]
ja 0x46899a
push dword [esp + 0x40]
mov edi, dword [esi + 8]
push dword [esp + 0x48]
mov eax, dword [esp + 0x18]
dec eax
mov ebx, dword [edi]
push 0
push eax
call fcn.005a74e0
add eax, 0x20
adc edx, 0
push edx
push eax
push dword [esp + 0x50]
mov eax, dword [ebx + 8]
push dword [esp + 0x20]
push edi
call eax
add esp, 0x14
mov dword [esp + 0x20], eax
test eax, eax
jne 0x46898e
mov edi, dword [esp + 0x14]
mov eax, dword [esi + 0x54]
cmp eax, dword [edi + 8]
jne 0x46898e
mov eax, dword [esi + 0x58]
cmp eax, dword [edi + 0xc]
jne 0x46898e
mov eax, dword [edi]
bswap eax
mov dword [esp + 0x4c], eax
test eax, eax
je 0x46898e
xor ebx, ebx
lea eax, [esi + 0x4c]
cmp byte [esi + 0x41], bl
mov edx, edi
push eax
sete bl
push eax
push 8
mov ecx, ebx
call fcn.004682a0
add esp, 0xc
lea eax, [esi + 0x4c]
lea edx, [edi + 0x18]
mov ecx, ebx
push eax
push eax
push dword [esi + 0x24]
call fcn.004682a0
mov eax, dword [edi + 0x10]
add esp, 0xc
bswap eax
cmp dword [esi + 0x4c], eax
jne 0x46898e
mov eax, dword [edi + 0x14]
mov ebx, dword [esp + 0x10]
bswap eax
cmp dword [esi + 0x50], eax
jne 0x468992
mov edi, dword [edi + 4]
mov edx, ebx
push dword [esp + 0x4c]
mov ecx, esi
bswap edi
call fcn.004684b0
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
jne 0x468992
test edi, edi
je 0x46897d
mov eax, dword [esp + 0x50]
mov ecx, eax
and eax, 0xff00
sar ecx, 0x10
or ecx, eax
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], edi
mov word [esi + 0x42], cx
mov eax, dword [esi + 0x4c]
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0x50]
mov dword [esp + 0x3c], eax
inc ebx
mov dword [esp + 0x10], ebx
cmp ebx, dword [esp + 0x24]
jbe 0x468881
jmp 0x468992
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x34]
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
xor ecx, ecx
mov edx, dword [esp + 0x2c]
test edi, edi
mov dword [eax + edi*4], edx
mov eax, 0x88
cmove ecx, eax
mov eax, 0x8000
cmove eax, dword [esp + 0x54]
push eax
mov eax, dword [esp + 0x34]
add eax, ecx
push eax
lea eax, [ecx + edx]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
cmp ebx, dword [esp + 0x24]
jbe 0x4689e6
mov ecx, dword [esp + 0x5c]
inc edi
mov dword [esp + 0x34], edi
cmp edi, dword [esp + 0x58]
jbe 0x4687f0
push dword [esp + 0x14]
call fcn.00457dc0
add esp, 4
mov ebx, dword [esp + 0x20]
test ebx, ebx
jne 0x468ad1
mov eax, dword [esp + 0x38]
mov ecx, esi
mov dword [esi + 0x4c], eax
mov eax, dword [esp + 0x3c]
mov dword [esi + 0x50], eax
call fcn.00468350
mov eax, dword [esi + 0x20]
mov edi, 1
mov ecx, dword [eax]
add ecx, 0x60
mov dword [esp + 0x14], ecx
mov dword [ecx], 0
mov eax, dword [esi + 0x44]
mov dword [ecx + 0x20], eax
mov dword [ecx + 4], 0
cmp byte [esi + 0x2b], 0
je 0x468a4b
xor ebx, ebx
jmp 0x468a6b
mov ebx, 7
jmp 0x468ad1
mov ecx, dword [esi + 4]
lea eax, [edi + 3]
push 0xa
push 1
push eax
mov edx, dword [ecx]
push ecx
mov eax, dword [edx + 0x38]
call eax
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x468aa4
mov ecx, dword [esp + 0x14]
cmp edi, 1
jne 0x468a7e
cmp dword [esi + 0x44], 0
je 0x468a7e
mov eax, dword [esi + 0x44]
mov dword [ecx + 8], eax
jmp 0x468a86
mov dword [ecx + edi*4 + 4], 0xffffffff
cmp byte [esi + 0x2b], 0
jne 0x468aad
mov ecx, dword [esi + 4]
lea eax, [edi + 3]
push 9
push 1
push eax
mov edx, dword [ecx]
push ecx
mov eax, dword [edx + 0x38]
call eax
add esp, 0x10
jmp 0x468aa9
cmp ebx, 5
jne 0x468ad1
mov ecx, dword [esp + 0x14]
inc edi
cmp edi, 5
jl 0x468a37
cmp dword [esi + 0x48], 0
je 0x468ad1
push dword [esi + 0x6c]
push dword [esi + 0x44]
push str.recovered__d_frames_from_WAL_file__s
push 0x11b
call fcn.0045ade0
add esp, 0x10
mov edi, dword [esp + 0x18]
cmp byte [esi + 0x2b], 0
jne 0x468af4
mov eax, dword [esi + 4]
mov edx, 3
push 9
sub edx, edi
push edx
mov ecx, dword [eax]
push edi
push eax
mov eax, dword [ecx + 0x38]
call eax
add esp, 0x10
mov eax, ebx
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005a6fed
mov esp, ebp
pop ebp
ret