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

Disassembly:
sub esp, 0x7c
mov eax, dword [0x6d6ec0]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x8c]
xor ebp, ebp
push edi
mov edi, 3
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x10], ebp
movzx ecx, byte [esi + 0x2d]
lea ebx, [ebp + 1]
inc ecx
sub edi, ecx
mov dword [esp + 0x30], ecx
cmp byte [esi + 0x2b], 0
jne 0x5f4921
mov eax, dword [esi + 4]
push 0xa
push edi
push ecx
mov edx, dword [eax]
push eax
mov eax, dword [edx + 0x38]
call eax
add esp, 0x10
test eax, eax
jne 0x5f4e06
mov ecx, edi
mov edx, ebx
shl edx, cl
mov ecx, dword [esp + 0x30]
dec edx
add ecx, 8
shl edx, cl
or dword [esi + 0x74], edx
test eax, eax
jne 0x5f4e06
push 0x30
lea eax, [esi + 0x34]
push 0
push eax
call fcn.00621d30
mov eax, dword [esi + 8]
lea edx, [esp + 0x40]
push edx
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x18]
call eax
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x5f4dcc
cmp dword [esp + 0x38], ebp
jl 0x5f4c95
jg 0x5f4962
cmp dword [esp + 0x34], 0x20
jbe 0x5f4c95
mov eax, dword [esi + 8]
lea edx, [esp + 0x68]
push 0
push 0
push 0x20
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 8]
call eax
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x5f4dcc
mov edx, dword [esp + 0x68]
mov edi, dword [esp + 0x70]
bswap edx
mov eax, edx
and eax, 0xfffffffe
bswap edi
mov dword [esp + 0x54], edi
cmp eax, 0x377f0682
jne 0x5f4c95
lea eax, [edi - 1]
test edi, eax
jne 0x5f4c95
cmp edi, 0x10000
jg 0x5f4c95
cmp edi, 0x200
jl 0x5f4c95
mov eax, dword [esp + 0x74]
and dl, bl
mov ecx, dword [esp + 0x7c]
lea ebx, [esi + 0x4c]
bswap eax
mov dword [esi + 0x70], eax
mov eax, dword [esp + 0x78]
push ebx
mov dword [esi + 0x54], eax
lea eax, [esp + 0x6c]
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.005f33f0
mov eax, dword [esp + 0x94]
add esp, 0x14
bswap eax
cmp dword [ebx], eax
jne 0x5f4c95
mov eax, dword [esp + 0x84]
bswap eax
cmp dword [esi + 0x50], eax
jne 0x5f4c95
mov eax, dword [esp + 0x6c]
bswap eax
cmp eax, 0x2de218
je 0x5f4a44
push 0x10343
call fcn.005a5330
mov edi, eax
jmp 0x5f4c8a
lea ebx, [edi + 0x18]
lea eax, [ebx + 0x8000]
mov dword [esp + 0x44], ebx
push 0
push eax
call fcn.00564c20
add esp, 8
mov dword [esp + 0x20], eax
mov dword [esi + 0x78], eax
test eax, eax
jne 0x5f4a6f
lea edi, [eax + 7]
jmp 0x5f4dc7
mov ecx, dword [esp + 0x38]
add eax, 0x18
mov dword [esp + 0x48], eax
add eax, edi
mov edi, dword [esp + 0x34]
mov dword [esp + 0x28], 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 + 0x50], ebx
mov dword [esp + 0x4c], eax
call fcn.0061fda0
mov ecx, eax
xor eax, eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x18], eax
lea edx, [ecx + 0x21]
shr edx, 0xc
mov dword [esp + 0x58], edx
nop word [eax + eax]
mov ebp, eax
shl ebp, 0xc
lea ebx, [ebp + 0xfde]
cmp ecx, ebx
cmovb ebx, ecx
mov dword [esp + 0x14], ebx
test eax, eax
jne 0x5f4add
lea ebp, [eax + 1]
jmp 0x5f4ae0
add ebp, 0xffffffdf
lea ecx, [esp + 0x1c]
push ecx
push eax
push esi
call fcn.005f44e0
mov edi, eax
add esp, 0xc
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x5f4c76
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
mov dword [esi + 0x7c], eax
mov eax, dword [esi + 0x20]
mov dword [esi + 0x80], edx
mov dword [eax + edx*4], ecx
cmp ebp, ebx
ja 0x5f4bd1
nop dword [eax]
push dword [esp + 0x3c]
mov edi, dword [esi + 8]
lea eax, [ebp - 1]
push dword [esp + 0x44]
push 0
mov ebx, dword [edi]
push eax
call fcn.0061fba0
add eax, 0x20
adc edx, 0
push edx
push eax
push dword [esp + 0x4c]
mov eax, dword [ebx + 8]
push dword [esp + 0x2c]
push edi
call eax
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x5f4bc9
push dword [esp + 0x20]
lea eax, [esp + 0x54]
push dword [esp + 0x4c]
push eax
lea eax, [esp + 0x58]
push eax
push esi
call fcn.005f35e0
add esp, 0x14
test eax, eax
je 0x5f4bc9
push dword [esp + 0x4c]
push ebp
push esi
call fcn.005f42e0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x5f4bc9
mov eax, dword [esp + 0x50]
test eax, eax
je 0x5f4bba
mov dword [esi + 0x48], eax
mov eax, dword [esp + 0x54]
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
mov ebx, dword [esp + 0x14]
inc ebp
cmp ebp, ebx
jbe 0x5f4b20
jmp 0x5f4bcd
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 0x20]
mov ecx, dword [esp + 0x1c]
mov dword [eax + edx*4], ecx
xor ecx, ecx
test edx, edx
mov dword [esi + 0x80], 0
mov eax, 0x88
mov dword [esi + 0x7c], 0
cmove ecx, eax
mov edx, 0x7f78
mov eax, 0x8000
cmove eax, edx
push eax
mov eax, dword [esp + 0x2c]
add eax, ecx
push eax
mov eax, dword [esp + 0x24]
add eax, ecx
push eax
call fcn.006217b0
mov eax, dword [0x6d4d38]
add esp, 0xc
test eax, eax
je 0x5f4c5b
push 0x28a
call eax
add esp, 4
test eax, eax
je 0x5f4c5b
mov dword [esp + 0x64], eax
lea eax, [esp + 0x5c]
push eax
push 3
push 0
push 0xc0000006
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
call dword [sym.imp.KERNEL32.dll_RaiseException]
cmp ebp, ebx
jbe 0x5f4c76
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x58]
jbe 0x5f4ac0
push dword [esp + 0x20]
mov dword [esi + 0x78], 0
call fcn.00564ca0
mov ebp, dword [esp + 0x30]
add esp, 4
test edi, edi
jne 0x5f4dc7
mov eax, dword [esp + 0x10]
push esi
mov dword [esi + 0x4c], ebp
mov dword [esi + 0x50], eax
call fcn.005f4fd0
push esi
call fcn.005f3500
mov edx, eax
add esp, 8
mov dword [esp + 0x10], edx
mov ebx, 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, [ebx + 3]
je 0x5f4cdd
xor edi, edi
jmp 0x5f4d12
mov eax, dword [esi + 4]
push 0xa
push 1
push ebp
mov ecx, dword [eax]
push eax
mov eax, dword [ecx + 0x38]
call eax
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x5f4d96
mov ecx, dword [esi + 0x74]
lea eax, [ebp + 8]
bts ecx, eax
mov dword [esi + 0x74], ecx
test edi, edi
jne 0x5f4d96
mov edx, dword [esp + 0x10]
cmp ebx, 1
jne 0x5f4d25
cmp dword [esi + 0x44], 0
je 0x5f4d25
mov eax, dword [esi + 0x44]
mov dword [edx + 8], eax
jmp 0x5f4d2d
mov dword [edx + ebx*4 + 4], 0xffffffff
mov eax, dword [0x6d4d38]
test eax, eax
je 0x5f4d6c
push 0x28a
call eax
add esp, 4
test eax, eax
je 0x5f4d6c
mov dword [esp + 0x64], eax
lea eax, [esp + 0x5c]
push eax
push 3
push 0
push 0xc0000006
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
call dword [sym.imp.KERNEL32.dll_RaiseException]
cmp byte [esi + 0x2b], 0
lea ebp, [ebx + 3]
jne 0x5f4d9b
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 0x5f4d9b
cmp edi, 5
jne 0x5f4dc7
mov edx, dword [esp + 0x10]
inc ebx
cmp ebx, 5
jl 0x5f4cd0
cmp dword [esi + 0x48], 0
je 0x5f4dc7
push dword [esi + 0x6c]
push dword [esi + 0x44]
push str.recovered__d_frames_from_WAL_file__s
push 0x11b
call fcn.00553fa0
add esp, 0x10
mov ebx, 1
mov ebp, dword [esp + 0x30]
mov ecx, 3
sub ecx, ebp
cmp byte [esi + 0x2b], 0
mov dword [esp + 0x24], ecx
jne 0x5f4e04
mov eax, dword [esi + 4]
push 9
push ecx
push ebp
mov edx, dword [eax]
push eax
mov eax, dword [edx + 0x38]
call eax
mov ecx, dword [esp + 0x34]
add esp, 0x10
shl ebx, cl
lea ecx, [ebp + 8]
dec ebx
shl ebx, cl
not ebx
and dword [esi + 0x74], ebx
mov eax, edi
mov ecx, dword [esp + 0x88]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0061f478
add esp, 0x7c
ret