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

Disassembly:
sub esp, 0x90
mov eax, dword [0x571134]
xor eax, esp
mov dword [esp + 0x8c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0xa0]
xor ebp, ebp
mov edx, 3
mov dword [esp + 0x28], ebp
push edi
mov dword [esp + 0x10], ebp
movzx ebx, byte [esi + 0x2d]
lea edi, [ebp + 1]
inc ebx
sub edx, ebx
mov dword [esp + 0x60], ebx
cmp byte [esi + 0x2b], 0
mov dword [esp + 0x1c], edx
jne 0x4e96d1
mov eax, dword [esi + 4]
push 0xa
push edx
push ebx
mov ecx, dword [eax]
push eax
mov eax, dword [ecx + 0x38]
call eax
add esp, 0x10
test eax, eax
jne 0x4e9ba9
mov ecx, dword [esp + 0x1c]
mov eax, edi
shl eax, cl
lea ecx, [ebx + 8]
dec eax
shl eax, cl
or dword [esi + 0x74], eax
push 0x30
lea eax, [esi + 0x34]
push 0
push eax
call fcn.004fd610
mov eax, dword [esi + 8]
lea edx, [esp + 0x3c]
push edx
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x18]
call eax
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x4e9b77
cmp dword [esp + 0x34], ebp
jl 0x4e9a45
jg 0x4e9712
cmp dword [esp + 0x30], 0x20
jbe 0x4e9a45
mov eax, dword [esi + 8]
lea edx, [esp + 0x7c]
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 0x4e9b77
mov edx, dword [esp + 0x7c]
mov edi, dword [esp + 0x84]
bswap edx
mov eax, edx
and eax, 0xfffffffe
bswap edi
mov dword [esp + 0x50], edi
cmp eax, 0x377f0682
jne 0x4e9a45
lea eax, [edi - 1]
test edi, eax
jne 0x4e9a45
cmp edi, 0x10000
jg 0x4e9a45
cmp edi, 0x200
jl 0x4e9a45
mov eax, dword [esp + 0x88]
lea ebx, [esi + 0x4c]
mov ecx, dword [esp + 0x90]
and dl, 1
bswap eax
mov dword [esi + 0x70], eax
mov eax, dword [esp + 0x8c]
push ebx
mov dword [esi + 0x54], eax
lea eax, [esp + 0x80]
push 0
push 0x18
push eax
movzx eax, dl
xor eax, 1
mov byte [esi + 0x41], dl
push eax
mov dword [esi + 0x24], edi
mov dword [esi + 0x58], ecx
call fcn.004e8170
mov eax, dword [esp + 0xa8]
add esp, 0x14
bswap eax
cmp dword [ebx], eax
jne 0x4e9a45
mov eax, dword [esp + 0x98]
bswap eax
cmp dword [esi + 0x50], eax
jne 0x4e9a45
mov eax, dword [esp + 0x80]
bswap eax
cmp eax, 0x2de218
je 0x4e9807
push 0x101a9
call fcn.00498a90
mov ebx, eax
jmp 0x4e9a3a
lea ebx, [edi + 0x18]
lea eax, [ebx + 0x8000]
mov dword [esp + 0x40], ebx
push 0
push eax
call fcn.00450fb0
add esp, 8
mov dword [esp + 0x18], eax
mov dword [esi + 0x78], eax
test eax, eax
jne 0x4e9832
lea ebx, [eax + 7]
jmp 0x4e9b72
mov ecx, dword [esp + 0x34]
add eax, 0x18
mov dword [esp + 0x44], eax
add eax, edi
mov edi, dword [esp + 0x30]
mov dword [esp + 0x24], eax
sub edi, 0x20
mov eax, ebx
cdq
sbb ecx, ebp
mov ebx, eax
mov eax, edx
push eax
push ebx
push ecx
push edi
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x48], eax
call fcn.004fc180
mov edx, eax
mov dword [esp + 0x54], 0x7f78
xor edi, edi
mov dword [esp + 0x5c], edx
mov dword [esp + 0x28], edi
lea eax, [edx + 0x21]
shr eax, 0xc
mov dword [esp + 0x58], eax
mov ebp, edi
mov ecx, edx
shl ebp, 0xc
lea eax, [ebp + 0xfde]
cmp edx, eax
cmovae ecx, eax
mov dword [esp + 0x14], ecx
test edi, edi
jne 0x4e98a1
lea ebp, [edi + 1]
jmp 0x4e98a4
add ebp, 0xffffffdf
lea eax, [esp + 0x20]
push eax
push edi
push esi
call fcn.004e92a0
mov edx, dword [esp + 0x2c]
add esp, 0xc
mov ebx, eax
test edx, edx
je 0x4e9a26
mov eax, dword [esi + 0x20]
mov ecx, dword [esp + 0x24]
mov dword [esi + 0x80], edi
mov dword [esi + 0x7c], edx
mov dword [eax + edi*4], ecx
cmp ebp, dword [esp + 0x14]
ja 0x4e998d
nop
push dword [esp + 0x38]
mov edi, dword [esi + 8]
lea eax, [ebp - 1]
push dword [esp + 0x40]
push 0
mov ebx, dword [edi]
push eax
call fcn.004fc310
add eax, 0x20
adc edx, 0
push edx
push eax
push dword [esp + 0x48]
mov eax, dword [ebx + 8]
push dword [esp + 0x24]
push edi
call eax
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x4e9985
push dword [esp + 0x18]
lea eax, [esp + 0x50]
push dword [esp + 0x48]
push eax
lea eax, [esp + 0x54]
push eax
push esi
call fcn.004e83c0
add esp, 0x14
test eax, eax
je 0x4e9985
push dword [esp + 0x48]
push ebp
push esi
call fcn.004e90a0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x4e9985
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x4e997a
mov dword [esi + 0x48], eax
mov eax, dword [esp + 0x50]
mov ecx, eax
and eax, 0xff00
sar ecx, 0x10
or ecx, eax
mov dword [esi + 0x44], ebp
mov word [esi + 0x42], cx
mov eax, dword [esi + 0x4c]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x50]
mov dword [esp + 0x10], eax
inc ebp
cmp ebp, dword [esp + 0x14]
jbe 0x4e98e0
mov edi, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
mov eax, dword [esi + 0x20]
xor ecx, ecx
test edi, edi
mov dword [eax + edi*4], edx
mov eax, 0x88
cmove ecx, eax
mov dword [esi + 0x80], 0
mov eax, 0x8000
mov dword [esi + 0x7c], 0
cmove eax, dword [esp + 0x54]
push eax
mov eax, dword [esp + 0x28]
add eax, ecx
push eax
lea eax, [ecx + edx]
push eax
call fcn.004fd090
mov eax, dword [0x56f1f8]
add esp, 0xc
test eax, eax
je 0x4e9a0d
push 0x28a
call eax
add esp, 4
test eax, eax
je 0x4e9a0d
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x64]
push eax
push 3
push 0
push 0xc0000006
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
call dword [sym.imp.KERNEL32.dll_RaiseException]
cmp ebp, dword [esp + 0x14]
jbe 0x4e9a26
mov edx, dword [esp + 0x5c]
inc edi
mov dword [esp + 0x28], edi
cmp edi, dword [esp + 0x58]
jbe 0x4e9882
push dword [esp + 0x18]
mov dword [esi + 0x78], 0
call fcn.00451030
mov ebp, dword [esp + 0x30]
add esp, 4
test ebx, ebx
jne 0x4e9b72
mov eax, dword [esp + 0x10]
push esi
mov dword [esi + 0x4c], ebp
mov dword [esi + 0x50], eax
call fcn.004e9d80
push esi
call fcn.004e82d0
mov edx, eax
add esp, 8
mov dword [esp + 0x10], edx
mov edi, 1
mov dword [edx], 0
mov ecx, dword [esi + 0x44]
mov dword [edx + 0x20], ecx
mov dword [edx + 4], 0
nop dword [eax]
cmp byte [esi + 0x2b], 0
lea ebp, [edi + 3]
je 0x4e9a8d
xor ebx, ebx
jmp 0x4e9aba
mov eax, dword [esi + 4]
push 0xa
push 1
push ebp
mov ecx, dword [eax]
push eax
mov eax, dword [ecx + 0x38]
call eax
add esp, 0x10
mov ebx, eax
test eax, eax
jne 0x4e9b3f
mov ecx, dword [esi + 0x74]
lea eax, [ebp + 8]
mov edx, dword [esp + 0x10]
bts ecx, eax
mov dword [esi + 0x74], ecx
cmp edi, 1
jne 0x4e9acb
mov eax, dword [esi + 0x44]
test eax, eax
je 0x4e9acb
mov dword [edx + 8], eax
jmp 0x4e9ad3
mov dword [edx + edi*4 + 4], 0xffffffff
mov eax, dword [0x56f1f8]
test eax, eax
je 0x4e9b18
push 0x28a
call eax
add esp, 4
test eax, eax
je 0x4e9b18
mov dword [esp + 0x78], eax
lea eax, [esp + 0x70]
push eax
push 3
push 0
push 0xc0000006
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
call dword [sym.imp.KERNEL32.dll_RaiseException]
cmp byte [esi + 0x2b], 0
jne 0x4e9b46
mov eax, dword [esi + 4]
push 9
push 1
push ebp
mov ecx, dword [eax]
push eax
mov eax, dword [ecx + 0x38]
call eax
mov ecx, dword [esi + 0x74]
lea eax, [ebp + 8]
add esp, 0x10
btr ecx, eax
mov dword [esi + 0x74], ecx
jmp 0x4e9b46
mov ebx, eax
cmp eax, 5
jne 0x4e9b72
mov edx, dword [esp + 0x10]
inc edi
cmp edi, 5
jl 0x4e9a80
cmp dword [esi + 0x48], 0
je 0x4e9b72
push dword [esi + 0x6c]
push dword [esi + 0x44]
push str.recovered__d_frames_from_WAL_file__s
push 0x11b
call fcn.0045a560
add esp, 0x10
mov edi, 1
cmp byte [esi + 0x2b], 0
jne 0x4e9ba7
mov eax, dword [esi + 4]
mov ebp, dword [esp + 0x60]
push 9
push dword [esp + 0x20]
mov edx, dword [eax]
push ebp
push eax
mov eax, dword [edx + 0x38]
call eax
mov ecx, dword [esp + 0x2c]
add esp, 0x10
shl edi, cl
lea ecx, [ebp + 8]
dec edi
shl edi, cl
not edi
and dword [esi + 0x74], edi
mov eax, ebx
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004fb4f7
add esp, 0x90
ret